Hello all,
I have a strange thing.
I load the editor through ajax. This works fine most of the time, but sometimes the editor is not replaced.
This code is run when ajax is loaded and a element with ID editor1 is available
On submitting the form the editor returns the content which was loaded and not the altered content.
The content is captured through
Does anybody know what this is about?
With kind regards
Jerry
I have a strange thing.
I load the editor through ajax. This works fine most of the time, but sometimes the editor is not replaced.
This code is run when ajax is loaded and a element with ID editor1 is available
function initEditor(){ if ( editor ) editor.destroy(); editor = CKEDITOR.replace( 'editor1', { extraPlugins : 'autogrow', autoGrow_maxHeight : 1500, removePlugins : 'resize' } ); } // the ajax response is <div id="editorfield"> <form action="javascript:saveCmsContent();"> <textarea name="editor1" id="editor1" class="editorarea" style=\"width: 950px;"><!-- here comes some initial content if applicable --></textarea> </form> </div>
On submitting the form the editor returns the content which was loaded and not the altered content.
The content is captured through
editor_data = CKEDITOR.instances.editor1.getData();
Javascript error 5007
rule 103 return N.getFrameDocument().getBody().getHtml();
in IE = property is empty or not defined
in Chrome = Uncaught TypeError: Cannot call method 'getFrameDocument' of null
Does anybody know what this is about?
With kind regards
Jerry