Ticket #3560: 3560_2.patch
File 3560_2.patch, 1.6 KB (added by , 15 years ago) |
---|
-
_source/core/htmlparser/element.js
128 128 break; 129 129 130 130 writeName = element.name; 131 if ( !writeName ) // Send children. 132 { 133 CKEDITOR.htmlParser.fragment.prototype.writeHtml.apply( element, arguments ); 134 return; 135 } 131 136 } 132 137 133 138 // The element may have been changed, so update the local -
_source/plugins/scayt/plugin.js
77 77 }); 78 78 79 79 // Listen to data manipulation to reflect scayt markup. 80 editor.on( 'beforeGetData', function()81 {82 if ( plugin.isScaytEnabled( editor ) )83 plugin.getScayt( editor ).refresh();84 });85 86 80 editor.on( 'afterSetData', function() 87 81 { 88 82 if ( plugin.isScaytEnabled( editor ) ) … … 97 91 ev.data.scayt = scayt; 98 92 }); 99 93 94 var dataProcessor = editor.dataProcessor, 95 htmlFilter = dataProcessor && dataProcessor.htmlFilter; 96 if ( htmlFilter ) 97 { 98 htmlFilter.addRules( 99 { 100 elements : 101 { 102 span : function( element ) 103 { 104 if ( element.attributes.scayt_word && element.attributes.scaytid ) 105 { 106 delete element.name; // Write children, but don't write this node. 107 return element; 108 } 109 } 110 } 111 } 112 ); 113 } 114 100 115 if ( editor.document ) 101 116 { 102 117 createInstnce();