AmbhuvA
AmbhuvA

Reputation: 175

Insert Element in Ckinline

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

Answers (1)

Joel Peltonen
Joel Peltonen

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

Related Questions