﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16779	config.fillEmptyBlocks not working as function	Scott		"Hello 

I am trying to configure CKE to NOT add space to my clear_fix div.

I have windows 7 pro 64, and have tried IE11, Chrome 55.0.2883.87(64-bit), and FF 50.1.0(64-bit).

I have the basic plugins, plus stylesheetparser, enhanced image, and I installed devtools to see if I could solve this.

I also config.removePlugins = 'stylesheetparser';

and I am getting the same error

According to bug #10422 this has been discovered and fixed, but unless I am doing something wrong, I believe the docs say I can do this but it is not working for me. My div has a class of clear_fix, not clear-both

config.fillEmptyBlocks = function( element ) {
 if ( element.attributes[ 'class' ].indexOf( 'clear_fix' ) != -1 )
  return false;
 };

I have the above setting in my config.js file.

Note, this works fine: config.fillEmptyBlocks = false;

In chrome I get Uncaught TypeError: Cannot read property 'indexOf' of undefined

in FF I get TypeError: element.attributes.class is undefined
"	Bug	closed	Normal		Core : Parser		invalid		
