Feature #541 - ASCIIMathML.js: Corrections for the case "IE without MathPlayer".

skala
Ivan Tcholakov 16 years ago
parent cb732046ca
commit aef77c65fd
  1. 11
      main/inc/lib/asciimath/ASCIIMathML.js
  2. 2
      main/inc/lib/fckeditor/editor/plugins/asciimath/fckplugin.js
  3. 2
      main/inc/lib/fckeditor/editor/plugins/asciimath/fckplugin_compressed.js

@ -125,9 +125,14 @@ var isIE = document.createElementNS==null;
var noMathML = false, translated = false;
if (isIE) { // avoid adding MathPlayer info explicitly to each webpage
document.write("<object id=\"mathplayer\"\
classid=\"clsid:32F66A20-7614-11D4-BD11-00104BD3F987\"></object>");
document.write("<?import namespace=\"m\" implementation=\"#mathplayer\"?>");
if (navigator.appName.slice(0,9)=="Microsoft")
try {
var ActiveX = new ActiveXObject("MathPlayer.Factory.1");
ActiveX = null;
document.write("<object id=\"mathplayer\"\
classid=\"clsid:32F66A20-7614-11D4-BD11-00104BD3F987\"></object>");
document.write("<?import namespace=\"m\" implementation=\"#mathplayer\"?>");
} catch (e) { }
}
// Add a stylesheet, replacing any previous custom stylesheet (adapted from TW)

@ -25,7 +25,7 @@ var alertIfNoSVG = false;
var translateASCIIMath = false ;
// Registering the related command.
FCKCommands.RegisterCommand( 'asciimath', new FCKDialogCommand( FCKLang['DlgAsciiMath'], FCKLang['DlgAsciiMath'], FCKConfig.PluginsPath + 'asciimath/fck_asciimath.html', 800, 620 ) ) ;
FCKCommands.RegisterCommand( 'asciimath', new FCKDialogCommand( FCKLang['DlgAsciiMath'], FCKLang['DlgAsciiMath'], FCKConfig.PluginsPath + 'asciimath/fck_asciimath.html', 800, 650 ) ) ;
// Create the "asciimath" toolbar button.
var oAsciiMathItem = new FCKToolbarButton( 'asciimath', FCKLang['DlgAsciiMath'] ) ;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save