且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CKeditor textarea被禁用,直到单击“源”按钮?

更新时间:2022-03-06 06:43:04

我遇到了类似的问题,即页面加载时隐藏的文本区域...在某些动作下单击按钮...显示了...我的行为完全相同。

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.

我是在页面加载时初始化CKEDITOR.replace('control')。

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

我后来在控件的show事件上对其进行了更改,

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

类似

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