javascript - 如何在ckeditor对话框中使输入只读

标签 javascript html css input ckeditor

我正在尝试找到一种方法,使 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/

相关文章:

javascript - 防止 SPACE 和 ARROW 滚动 [游戏 Iframe]

javascript - 当我为来自服务器的数据实现一些更 Angular js 代码时,轮播停止工作

Jquery Cycle2 非图像 div 位置问题

html - 将图像+文本居中的最佳方式 w/text 向右和 img 向左

html - 导航栏周围的白色间距(仅限移动设备)

javascript - 如何使用BURSTS获取BURST账户余额?

javascript - Google Apps 脚本中的条纹 HTML 标签

HTML CSS : text won't fill the div horizontally in Android 4. 3

javascript - 调整游戏音乐的音量

Android WebView 链接高亮问题