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
Post a Comment