javascript - How to insert text dynamically in CKEDITOR -


i use plugin ckeditor word editor in web. inside editor have table have 2 columns . want achieve in first column if user input number add (50) , result automatically appear in second column. easy using jquery not work. tried codes:

function insertintockeditor(str){   ckeditor.instances['editor1'].inserttext(str); } 

but code insert automatically above text area of editor.

use

setdata()

function insertintockeditor(str){     ckeditor.instances['editor1'].setdata(str); } 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -