Changeset 945
- Timestamp:
- 01/26/08 23:55:05 (5 years ago)
- Location:
- trunk
- Files:
-
- 1 removed
- 1 modified
-
XinhaCore.js (modified) (3 diffs)
-
modules/Gecko/paraHandlerDirty.js (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r943 r945 2120 2120 2121 2121 // If this is gecko, set up the paragraph handling now 2122 if ( Xinha.is_gecko && ( editor.config.mozParaHandler == 'best' || editor.config.mozParaHandler == 'dirty' ) ) 2123 { 2124 switch (this.config.mozParaHandler) 2125 { 2126 case 'dirty': 2127 var ParaHandlerPlugin = _editor_url + 'modules/Gecko/paraHandlerDirty.js'; 2128 break; 2129 default: 2130 var ParaHandlerPlugin = _editor_url + 'modules/Gecko/paraHandlerBest.js'; 2131 break; 2132 } 2133 if ( !Xinha.loadPlugins(["EnterParagraphs"], function() { editor.generate(); }, ParaHandlerPlugin ) ) 2122 if ( Xinha.is_gecko && editor.config.mozParaHandler != 'built-in' ) 2123 { 2124 if ( !Xinha.loadPlugins(["EnterParagraphs"], function() { editor.generate(); }, _editor_url + 'modules/Gecko/paraHandlerBest.js' ) ) 2134 2125 { 2135 2126 return false; … … 4888 4879 4889 4880 // remove disabling of inline event handle inside Xinha iframe 4890 html = html.replace(/(<[^>]*on(click|mouse(over|out|up|down))=['"])if\(window\. top && window\.top\.Xinha\)\{return false\}/gi,'$1');4881 html = html.replace(/(<[^>]*on(click|mouse(over|out|up|down))=['"])if\(window\.parent && window\.parent\.Xinha\)\{return false\}/gi,'$1'); 4891 4882 4892 4883 // Figure out what our server name is, and how it's referenced … … 4949 4940 4950 4941 // disable inline event handle inside Xinha iframe 4951 html = html.replace(/(<[^>]*on(click|mouse(over|out|up|down))=["'])/gi,'$1if(window. top && window.top.Xinha){return false}');4942 html = html.replace(/(<[^>]*on(click|mouse(over|out|up|down))=["'])/gi,'$1if(window.parent && window.parent.Xinha){return false}'); 4952 4943 4953 4944 html = this.inwardSpecialReplacements(html);
