ckeditor - 在编辑器外部编辑 contenteditable div
我的 ckeditor 中有 div(仅限工具栏):
editor = CKEDITOR.appendTo('topSpace',
{
editingBlock: false
});
并且我想在 contenteditable div 中编辑文本,但工具栏中的按钮不适用于所选文本。有什么解决办法吗?
I have div with my ckeditor (only toolbar):
editor = CKEDITOR.appendTo('topSpace',
{
editingBlock: false
});
and I want to edit text in my contenteditable div, but buttons in toolbar don't work for selected text. Any solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CKEditor 使用 iframe 进行编辑,这与通过 contenteditable 使页面内的 div 可编辑不同。 有一些可编辑内容的编辑器可供您使用:
此答案的更多信息:https://stackoverflow.com/a/6756414/232288
CKEditor uses iframe for editing, which is different from making on-page divs editable via contenteditable. Fortunately there are some contenteditable editors out there for you:
More from this answer: https://stackoverflow.com/a/6756414/232288