Hi there,
I try to append simple block of code into editor, but when I try to do that like this :
CKEDITOR.instances.description.insertHtml('<div class=\'club\'><div class=\'foto\'><img src=\'/public/images/default/tempImg.png\' /></div><div class=\'desc\'><h2>Name</h2><p>Description</p></div></div>')
And I make changes like name, description, and call that again, the code is inserted inside the div I already insterted.
Is there a way to append html at the end of editor every time?
See http://docs.ckeditor.com/
See http://docs.ckeditor.com/#!/api/CKEDITOR.editable-method-insertElementIntoRange. You will need to prepare range before inserting element.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+