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

CKEditor内联编辑-内容不可编辑?,ckeditor,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并尝试了以下操作:

<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>

一些测试文本
CKEDITOR.disableAutoInline=true;
var editor=CKEDITOR.inline('editor');
它的工作原理是,我可以单击div使编辑器工具栏出现,但除此之外,我似乎无法编辑内容!大多数工具栏按钮都被禁用,在字段中键入什么都不起作用。(见下面的屏幕截图)


根据这应该是所有的JS我需要。我还需要做其他配置设置吗?

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

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