Ticket #3609: 3609_3.patch
File 3609_3.patch, 1.3 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
173 173 174 174 init : function( editor ) 175 175 { 176 var fixForBody = ( editor.config.enterMode != CKEDITOR.ENTER_BR ) 177 ? editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' : false; 178 176 179 editor.on( 'editingBlockReady', function() 177 180 { 178 181 var mainElement, … … 434 437 // Get the HTML version of the data. 435 438 if ( editor.dataProcessor ) 436 439 { 437 var fixForBody = ( editor.config.enterMode != CKEDITOR.ENTER_BR )438 ? editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' : false;439 440 data = editor.dataProcessor.toHtml( data, fixForBody ); 440 441 } 441 442 … … 487 488 var data = iframe.getFrameDocument().getBody().getHtml(); 488 489 489 490 if ( editor.dataProcessor ) 490 data = editor.dataProcessor.toDataFormat( data, ( editor.config.enterMode != CKEDITOR.ENTER_BR ));491 data = editor.dataProcessor.toDataFormat( data, fixForBody ); 491 492 492 493 // Strip the last blank paragraph within document. 493 494 if ( editor.config.ignoreEmptyParagraph )