Opened 11 years ago
Last modified 10 years ago
#10422 closed Bug
fillEmptyBlocks not working properly if a function is specified — at Initial Version
Reported by: | raz_atoth | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.4.3 |
Component: | General | Version: | 4.0 Beta |
Keywords: | HasPatch | Cc: | shane@… |
Description
The function never fires,if config.fillEmptyBlocks is a function,although there are empty elements and a is placed instead just as if config.fillEmptyBlocks was true [<div class="block"> </div>] If config.fillEmptyBlocks=false it works as expected [<div class="block"></div>]
config.fillEmptyBlocks = function( element )
{
alert('fillEmptyBlocks!'); if ( element.attributes[ 'class' ].indexOf ( 'clear-both' ) != -1 )
return false;
}