first, create instance of ckeditor named 'richeditor' in webpage. second, upon button click making ajax call, returns html data, , showing in jquery ui dialog.then copying html of 'richeditor' instance present in webpage , pasting in div in dialog. reused 'richeditor' instance not work.any button click in editor throwing javascript error , neither textarea nor source text area editable.
any or thought appreciated.
you cannot copy html of editor , reuse it. first of all, dom structure of instance strictly connected js code driving editor (and vice versa). it's deeper plain html. second reason editor use based on iframe
, cannot copied preserving content.
in other words: have create instance of editor run somewhere else. please refer official guide , api docs know more ckeditor.replace(), ckeditor.appendto() , ckeditor.destroy().
Comments
Post a Comment