CKeditor textarea is disabled up until when I click the source button?

北城余情 提交于 2019-12-24 00:07:50

问题


I am really confused about CKEditor. When I load or reload the page the CKEditor is automatically disabled on the first request of the page. Whenever I click the source button, and again click source for normal editing, the content area is enabled and I can write only then.


回答1:


I faced the similar issue for a textarea that was hidden when page loads...and on some action say a button click...it was displayed...I had exactly the same behavior.

I was initializing CKEDITOR.replace('control') at page load.

I later changed it on show event of the control and that worked for me.

Something like

$('#ControlId').show();
$('#ControlId').val(question[1]);
CKEDITOR.replace('ControlId');


来源:https://stackoverflow.com/questions/13881224/ckeditor-textarea-is-disabled-up-until-when-i-click-the-source-button

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!