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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -