我正在尝试找到一种方法,使 ckeditor 对话框中的输入只读。
我已经初始化了这样的元素:
type: 'hbox',
widths: ['25%', '75%'],
children:
[{
type: 'text',
id: 'moduleId',
label: 'Module',
正在寻找documentation我想唯一的方法是对输入应用一些 css 样式?
最佳答案
我在ckeditor源代码中找到了解决方案。只需要将它添加到元素初始化
onLoad : function()
{
this.getInputElement().setAttribute( 'readOnly', true );
}
关于javascript - 如何在ckeditor对话框中使输入只读,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10190457/