Adding CKEditor through javascript onclick event adds a CKEditor to the DOM but does not allow me to

Posted by Mallika Iyer on Stack Overflow See other posts from Stack Overflow or by Mallika Iyer
Published on 2010-05-07T21:27:25Z Indexed on 2010/05/07 21:38 UTC
Read the original article Hit count: 474

Filed under:
|
|

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!

© Stack Overflow or respective owner

Related posts about ckeditor

Related posts about fckeditor