开发者

Adding CKEditor through javascript onclick event adds a CKEditor to the DOM but does not allow me to enter text into it. Why?

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 javascr开发者_如何学Goipt 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!


using CKEDITOR.replace('id) after adding the textarea to the DOM - within the javascript function, got the job done.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜