增加 MSIE 和 Mozilla/FF 支持的不可编辑元素。任何有 "mceItemNonEditable" class 的元素将会被锁定,作为一个单独的字符以防修改。class 的名字由 "noneditable_noneditable_class" 来配置。任何有 MSIE 特别属性"contenteditable"的元素会被替换成 class。
初始化示例
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "noneditable",
noneditable_leave_contenteditable : true
});
选项
| [noneditable_editable_class] | 可编辑元素使用的 Class 名,这等同于 contenteditable=true,将使元素可编辑。选项默认是:"mceItemEditable"。注意带 mceItem 前缀的class在 TinyMCE 中是不可见的。 |
| [noneditable_noneditable_class] | 不可编辑元素使用的 Class 名,,这等同于 contenteditable=false 。选项默认是:"mceItemNonEditable"。注意带 mceItem 前缀的class在 TinyMCE 中是不可见的。 |
| [noneditable_leave_contenteditable] | 如果选项值被设为 true ,所有内容可编辑属性将会完整保留。选项默认是:false。因为这个属性不是标准 W3C 属性,使用 class 的方法更好。 |