Ticket #4708: 4708.patch
File 4708.patch, 1.3 KB (added by , 13 years ago) |
---|
-
_source/core/config.js
282 282 * @example 283 283 * config.baseFloatZIndex = 2000 284 284 */ 285 baseFloatZIndex : 10000 285 baseFloatZIndex : 10000, 286 286 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 287 296 }; 288 297 289 298 // PACKAGER_RENAME( CKEDITOR.config ) -
_source/core/editor.js
650 650 var element = this.element; 651 651 if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) 652 652 { 653 var data = this.getData(); 654 655 if( this.config.htmlEncodeOutput ) 656 data = CKEDITOR.tools.htmlEncode( data ); 657 653 658 if ( element.is( 'textarea' ) ) 654 element.setValue( this.getData());659 element.setValue( data ); 655 660 else 656 element.setHtml( this.getData());661 element.setHtml( data ); 657 662 } 658 663 } 659 664 });