Hi everyone.
Having spent quite some time searching around to stop CKEditor adding into empty <div>'s. I have added the following into ckeditor > config.js but still the is being added...
CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.fillEmptyBlocks = false; // Prevent filler node only in float cleaners. config.fillEmptyBlocks = function( element ) { alert('fillEmptyBlocks!'); if ( element.attributes[ 'class' ].indexOf ( 'clear-both' ) != -1 ) return false; } };
...and as you can see from the attached screen shot, it's still adding the
Any help would be much appreciated.
I do believe that's a
I do believe that's a confirmed bug.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Thanks sebstefanov
Thanks sebstefanov
If I read it right, I need to make a couple of changes to the htmldataprocessor.js file but I dont have that file.
I've done a search for "fillEmptyBlocks" and only the following 2 files contain that string...
ckeditor > config.js
ckeditor > ckeditor.js
...without htmldataprocessor.js I feel a bit lost on how to fix the bug.