Browse Source

Tasks #541 and #1709 - ASCIIMathML.js: Disabling directly in the scipt the code that inserts styles for warning messages. This feature of the script breaks the online editor's visual appearance.

Ivan Tcholakov 14 years ago
parent
commit
7822196835

+ 4 - 1
main/inc/lib/asciimath/ASCIIMathML.js

@@ -170,7 +170,10 @@ function setStylesheet(s) {
 	}
 }
 
-setStylesheet("#AMMLcloseDiv \{font-size:0.8em; padding-top:1em; color:#014\}\n#AMMLwarningBox \{position:absolute; width:100%; top:0; left:0; z-index:200; text-align:center; font-size:1em; font-weight:bold; padding:0.5em 0 0.5em 0; color:#ffc; background:#c30\}");
+// Disabled by Ivan Tcholakov, 11-JUL-2010.
+// On Internet Explorer the inserted   character breaks visual appearance of the online editor.
+//setStylesheet("#AMMLcloseDiv \{font-size:0.8em; padding-top:1em; color:#014\}\n#AMMLwarningBox \{position:absolute; width:100%; top:0; left:0; z-index:200; text-align:center; font-size:1em; font-weight:bold; padding:0.5em 0 0.5em 0; color:#ffc; background:#c30\}");
+//
 
 // Added by Ivan Tcholakov, 08-JUL-2010.
 // Prevention from multiple calls of the initialization function.

+ 0 - 7
main/inc/lib/fckeditor/editor/plugins/asciimath/fck_asciimath.html

@@ -23,13 +23,6 @@ document.write( '<scr' + 'ipt type="text/javascript" src="' + window.parent.fram
 		<script src="fck_asciimath.js" type="text/javascript"></script>
 
 		<script type="text/javascript">
-// ASCIIMathML.js inserts &nbsp; and next to it insers style definitions for warning messages.
-// This &nbsp is to be removed for preserving visual appearance of this dialog on Internet Explorer.
-var n = document.getElementById( 'AMMLcustomStyleSheet' ) ;
-if ( n && n.previousSibling && n.previousSibling.nodeType ) {
-	n = n.previousSibling ;
-	if ( n.nodeType == 3 ) n.parentNode.removeChild( n ) ;
-}
 document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ;
 		</script>