Opened 11 years ago

Last modified 10 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 Jakub Ś)

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 (2)

Changed 11 years ago by raz_atoth

Attachment: config.js added

comment:1 Changed 11 years ago by Jakub Ś

Description: modified (diff)
Status: newconfirmed
Version: 4.1.14.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.

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