Opened 13 years ago
Last modified 11 years ago
#10422 closed Bug
fillEmptyBlocks not working properly if a function is specified — at Version 1
| Reported by: | raz_atoth | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 4.4.3 |
| Component: | General | Version: | 4.0 Beta |
| Keywords: | HasPatch | Cc: | shane@… |
Description (last modified by )
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;
}
Change History (2)
Changed 13 years ago by
comment:1 Changed 13 years ago by
| Description: | modified (diff) |
|---|---|
| Status: | new → confirmed |
| Version: | 4.1.1 → 4.0 Beta |

Problem can be reproduced from CKEditor 4 beta. In 3.x branch when you switched to source you could see alert being called. Nothing like this is happening in CKE 4.x.