Reputation: 175
i've tried to insert element in ckinlne editor's current cursor position. Is there any methods to insert Element in ckinline div's current cursor position?
Upvotes: 0
Views: 39
Reputation: 13412
It's quite simple actually. Replace editor1 with your editor id in the example below:
CKEDITOR.instances.editor1.insertHtml( '<p>This is a new paragraph.</p>' );
That example is from the official documentation at http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertHtml
Upvotes: 1