问题
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