I tried to create custom plugin, that deals with div fake object, so i added some code to parse blocks presented as fake object correctly:
afterInit : function( editor )
{
var dataProcessor = editor.dataProcessor,
dataFilter = dataProcessor && dataProcessor.dataFilter;
if ( dataFilter )
{
dataFilter.addRules(
{
elements :
{
div : function( element )
{
...
return editor.createFakeParserElement( element, 'cke_myclass', 'div', false );
}
}
});
}
},
requires : [ 'fakeobjects' ]
The problem about it, is that exception of undefined variable is thrown when editor loads. Apparently, it only happens if pagebreak plugin is active (so another rule for DIV element is registered). But if you disable pagebreak plugin: config.removePlugins = 'pagebreak', it works just fine.
Nice catch though the fix has been proposed at multiple other tickets, desire to give a separate fix on this ticket.