Ticket #2867: 2867.patch

File 2867.patch, 1.3 KB (added by Frederico Caldeira Knabben, 16 years ago)
  • _source/plugins/htmldataprocessor/plugin.js

     
    99
    1010        init : function( editor, pluginPath )
    1111        {
    12                 editor.dataProcessor = new CKEDITOR.htmlDataProcessor();
     12                var dataProcessor = editor.dataProcessor = new CKEDITOR.htmlDataProcessor();
     13               
     14                dataProcessor.writer.forceSimpleAmpersand = editor.config.forceSimpleAmpersand;
    1315        }
    1416});
    1517
     
    3840                return writer.getHtml( true );
    3941        }
    4042};
     43
     44CKEDITOR.config.forceSimpleAmpersand = false;
     45 No newline at end of file
  • _source/plugins/htmlwriter/plugin.js

     
    4848         */
    4949        this.lineBreakChars             = '\n';
    5050
     51        this.forceSimpleAmpersand = false;
     52
    5153        this._ =
    5254        {
    5355                output : [],
     
    144146         */
    145147        attribute : function( attName, attValue )
    146148        {
     149                if ( this.forceSimpleAmpersand )
     150                        attValue = attValue.replace( /&/, '&' );
     151
    147152                this._.output.push( ' ', attName, '="', attValue, '"' );
    148153        },
    149154
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy