Hi, I'm adding a ckeditor to my form using the onclick functionality - i.e., when the user clicks a button, the ckeditor is added to the form. I'm echoing out the html generated when a ckeditor is added to a page through the javascript function.
The ckeditor is added, but the text area cannot be modified.
is it because i'm adding the html to generate the ckeditor as : ckeditor.innerHTML = '......';
is there another way to add a ckeditor to my form using the javascript onclick (like: onclick="addCKEditor();")
Thanks!
From stackoverflow
-
Hi, using CKEDITOR.replace('id) after adding the textarea to the DOM - within the javascript function, got the job done.
-
any ideas? Please.. need solution
0 comments:
Post a Comment