rus*_*ego 3 html javascript css input ckeditor
我正在尝试找到一种方法使 ckeditor 对话框中的输入变为只读。
我已经初始化了这样的元素:
type: 'hbox',
widths: ['25%', '75%'],
children:
[{
type: 'text',
id: 'moduleId',
label: 'Module',
Run Code Online (Sandbox Code Playgroud)
查看文档我猜唯一的方法是应用一些 css 样式来输入?
我在ckeditor源代码中找到了解决方案。只需要将其添加到元素初始化中即可
onLoad : function()
{
this.getInputElement().setAttribute( 'readOnly', true );
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4772 次 |
| 最近记录: |