与ContentEditable一起使用的WYSIWYG编辑器是什么? [英] What's a good WYSIWYG editor to use with ContentEditable?
问题描述
我正在尝试构建与Google文档类似的东西,您可以在其中直接编辑页面,而不能通过textarea或iframe。这可以通过contentEditable HTML5属性来实现。
I'm trying to build something similar to Google Docs, where you can edit a page directly and not through a textarea or iframe. This is possible with the contentEditable HTML5 attribute.
所以我可以在contentEditable之上使用任何好的编辑器来提供诸如文本格式,插入链接,粘贴之类的功能。来自单词等?
So are there any good editors that I could use on top of contentEditable, to provide features like text formatting, inserting links, pasting from word, etc.?
http:// www .aloha-editor.org / 是我发现的一个,但是我想知道是否还有更多。
http://www.aloha-editor.org/ is one that I've found, but I was wondering if there are more.
(编辑:我应该澄清,我并不是在尝试构建整个 Google文档,我只是以此为例进行编辑实际内容)
(edit: I should clarify that I'm not trying to build the whole Google Docs, I just used that as an example of editing the actual content)
推荐答案
看看 HTML5编辑器,它使用textarea元素并将其转换为具有contentEditable的div。它有一个漂亮的可自定义工具栏,可轻松格式化内容。
Take a look at HTML5 editor, it take a textarea element and transform it into a div with contentEditable. It have a pretty customizable toolbar to easily format content.
这篇关于与ContentEditable一起使用的WYSIWYG编辑器是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!