function Fake() { var editor = CKEDITOR.instances.editor1; var element = CKEDITOR.dom.element.createFromHtml( '<div class="bold"><b>Example</b></div>' ); alert( element.getOuterHtml() ); editor.createFakeElement( element, 'fakegallery', 'div', false ); }
It doesn't work and no error in javascript console.
fakegallery is a css class!