Ticket #2867: 2867.patch
File 2867.patch, 1.3 KB (added by , 15 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
9 9 10 10 init : function( editor, pluginPath ) 11 11 { 12 editor.dataProcessor = new CKEDITOR.htmlDataProcessor(); 12 var dataProcessor = editor.dataProcessor = new CKEDITOR.htmlDataProcessor(); 13 14 dataProcessor.writer.forceSimpleAmpersand = editor.config.forceSimpleAmpersand; 13 15 } 14 16 }); 15 17 … … 38 40 return writer.getHtml( true ); 39 41 } 40 42 }; 43 44 CKEDITOR.config.forceSimpleAmpersand = false; 45 No newline at end of file -
_source/plugins/htmlwriter/plugin.js
48 48 */ 49 49 this.lineBreakChars = '\n'; 50 50 51 this.forceSimpleAmpersand = false; 52 51 53 this._ = 52 54 { 53 55 output : [], … … 144 146 */ 145 147 attribute : function( attName, attValue ) 146 148 { 149 if ( this.forceSimpleAmpersand ) 150 attValue = attValue.replace( /&/, '&' ); 151 147 152 this._.output.push( ' ', attName, '="', attValue, '"' ); 148 153 }, 149 154