mno*_*ish 9 javascript html5 contenteditable inline-editing ckeditor
我想知道是否可以以及如何在<span>
其他内联元素上启用CKEditor4内联/可信任编辑功能.这是我在官方文档中找不到的东西.
有了这个标记:
<span id="editable" contenteditable="true"></span>
Run Code Online (Sandbox Code Playgroud)
并且标准配置(启用AutoInline)或此配置:
<script>
CKEDITOR.disableAutoInline = true;
CKEDITOR.inline('editable'); // ID of the element to edit
</script>
Run Code Online (Sandbox Code Playgroud)
报告The specified element mode is not supported on element: "span".
错误:报告<a>
标记的错误相同.
Ben*_*enO 20
Hack方式允许支持不支持的标签:
CKEDITOR.dtd.$editable.span = 1
CKEDITOR.dtd.$editable.a = 1
Run Code Online (Sandbox Code Playgroud)
赢得.
归档时间: |
|
查看次数: |
5448 次 |
最近记录: |