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 &nbsp; is placed instead just as if config.fillEmptyBlocks was true [<div class="block">&nbsp;</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 (1)

Changed 11 years ago by raz_atoth

Attachment: config.js added
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy