I have an optimization problem with PE ckEditor and i would like some help in case somebody knows how to help me..
I have some pages with multiple ckEditors components in them (10-15 editors in average). Because the contents of ckEditor are Greek characters i need to configure the editors with this script found on an official ckEditor page..
Code: Select all
CKEDITOR.config.entities = false;
CKEDITOR.config.entities_latin = false;
CKEDITOR.on('instanceReady', function( ev ) {
var blockTags = ['div','h1','h2','h3','h4','h5','h6','p','pre','li','blockquote','ul','ol',
'table','thead','tbody','tfoot','td','th',];
for (var i = 0; i < blockTags.length; i++)
{
ev.editor.dataProcessor.writer.setRules( blockTags[i], {
indent : false,
breakBeforeOpen : true,
breakAfterOpen : false,
breakBeforeClose : false,
breakAfterClose : true
});
}
});
Thanks!