Skip to content

Commit

Permalink
Fixed config.fillEmptyBlocks in effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Garry Yao committed Oct 16, 2012
1 parent 2e8dd8d commit ea07419
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 7 additions & 3 deletions core/editor.js
Expand Up @@ -129,9 +129,6 @@
*/
this.focusManager = new CKEDITOR.focusManager( this );

// Documented in dataprocessor.js.
this.dataProcessor = new CKEDITOR.htmlDataProcessor( this );

/**
* Controls keystrokes typing in this editor instance.
*
Expand Down Expand Up @@ -318,6 +315,13 @@
// Fire the "configLoaded" event.
editor.fireOnce( 'configLoaded' );

initComponents( editor );
}

// Various other core components that read editor configuration.
function initComponents( editor ) {
// Documented in dataprocessor.js.
editor.dataProcessor = new CKEDITOR.htmlDataProcessor( editor );
loadSkin( editor );
}

Expand Down
3 changes: 1 addition & 2 deletions core/htmldataprocessor.js
Expand Up @@ -35,7 +35,7 @@
defaultHtmlBlockFilterRules.root = getBlockExtension( true, false );

for ( i in blockLikeTags )
defaultHtmlBlockFilterRules.elements[ i ] = getBlockExtension( true, editor.config.fillEmptyBlocks );
defaultHtmlBlockFilterRules.elements[ i ] = getBlockExtension( true, editor.config.fillEmptyBlocks !== false );

htmlFilter.addRules( defaultHtmlBlockFilterRules );
};
Expand Down Expand Up @@ -586,4 +586,3 @@
* @cfg {Boolean} [fillEmptyBlocks=true]
* @member CKEDITOR.config
*/
CKEDITOR.config.fillEmptyBlocks = true;

0 comments on commit ea07419

Please sign in to comment.