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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -