Ticket #4708: 4708.patch

File 4708.patch, 1.3 KB (added by Garry Yao, 14 years ago)
  • _source/core/config.js

     
    282282         * @example
    283283         * config.baseFloatZIndex = 2000
    284284         */
    285         baseFloatZIndex : 10000
     285        baseFloatZIndex : 10000,
    286286
     287        /**
     288         * Whether escape HTML when editor update original input element.
     289         * @type {Boolean}
     290         * @default false
     291         * @example
     292         * config.htmlEncodeOutput = true;
     293         */
     294        htmlEncodeOutput : false
     295
    287296};
    288297
    289298// PACKAGER_RENAME( CKEDITOR.config )
  • _source/core/editor.js

     
    650650                        var element = this.element;
    651651                        if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
    652652                        {
     653                                var data = this.getData();
     654
     655                                if( this.config.htmlEncodeOutput )
     656                                        data = CKEDITOR.tools.htmlEncode( data );
     657
    653658                                if ( element.is( 'textarea' ) )
    654                                         element.setValue( this.getData() );
     659                                        element.setValue( data );
    655660                                else
    656                                         element.setHtml( this.getData() );
     661                                        element.setHtml( data );
    657662                        }
    658663                }
    659664        });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy