【问题标题】:CKEditor inline editing - content isnt editable?CKEditor 内联编辑 - 内容不可编辑?
【发布时间】:2013-04-15 07:01:21
【问题描述】:

我下载了最新的 CKEditor 并尝试了以下方法:

<html>
<head>
<script src="ckeditor/ckeditor.js">
</script>
</head>
<body>
<div id="editor">
Some test text
</div>
<script>
CKEDITOR.disableAutoInline = true;

var editor = CKEDITOR.inline( 'editor' );
</script>
</body>

从某种意义上说,我可以单击 div 以显示编辑器工具栏,但除此之外,我似乎无法编辑内容!大多数工具栏按钮都被禁用,并且在该字段中键入什么也不做。 (见下方截图)

根据http://nightly.ckeditor.com/13-04-14-07-42/standard/samples/inlinebycode.html,这应该是我需要的所有 JS。我还需要做一些其他的配置设置吗?

【问题讨论】:

    标签: ckeditor


    【解决方案1】:

    粗,对不起。我在发布后几分钟就找到了答案。我非常专注于寻找一个配置选项,我没有意识到要检查示例中的 div。

    即使我不使用CKEDITOR.disableAutoInline,div 仍然必须有contenteditable="true"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-14
      相关资源
      最近更新 更多