CKEditor内联编辑 - 内容不可编辑?

Roy*_*ang 4 ckeditor

我下载了最新的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>
Run Code Online (Sandbox Code Playgroud)

它的工作原理是我可以单击div来显示编辑器工具栏,但除此之外我似乎无法编辑内容!大多数工具栏按钮都被禁用,在字段中键入什么也不做.(见下面的截图)

在此输入图像描述

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

Roy*_*ang 5

罗尔,对不起.发布此内容后,我发现答案仅仅几分钟.我非常专注于寻找配置选项,我没有意识到在示例中检查div.

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