hax.github.com icon indicating copy to clipboard operation
hax.github.com copied to clipboard

富文本编辑器选型

Open hax opened this issue 8 years ago • 16 comments

project repo star/fork maintainer status deps
UEditor fex-team/ ueditor 2339/1024 @Phinome (baidu fex) 1.4.x stable
1.5.x dev
年后计划2.x?
UMEditor fex-team/ umeditor 797/275 @Phinome (baidu fex) 1.2.x 维护中
wangEditor wangfupeng1988/ wangEditor 1498/472 王福朋 (baidu 手百) 维护中
wangEditor-mobile wangfupeng1988/ wangEditor-mobile 170/63 王福朋 (baidu 手百) 暂停维护
KindEditor kindsoft/ kindeditor 873/376 @luolonghao 罗龙浩 (alipay) 已不维护
xhEditor yaniswang/ xhEditor 148/62 @yaniswang (alibaba) 已不维护
Kissy Editor kissyteam/ editor 1/3 ? 仅内部维护
CKEditor 4 ckeditor/ ckeditor-dev 3152/1521 10+ (CKSource) 维护中
CKEditor 5 ckeditor/ ckeditor5 142/24 5+ (CKSource) 开发中
TinyMCE tinymce/ tinymce 3927/1151 @spocke 4.5.x 维护中
Aloha Editor alohaeditor/ Aloha-Editor 2214/513 @GenticsDev 1.x维护中 但2.0版计划已废弃
ContentTools GetmeUK/ ContentTools 2598/248 @anthonyjb
MediumEditor yabwe/ medium-editor 9775/1163
wysihtml Voog/ wysihtml
wysiwyg.js wysiwygjs/ wysiwyg.js 380/116 ?
Substance substance/ substance 2062/88
WYMeditor wymeditor/ wymeditor
Froala froala/ wysiwyg-editor 871/150 @stefanneculai 1.x 停止维护
2.0 rc
Draft.js facebook/ draft-js 8609/708 ? (facebook) ? React
ProseMirror ProseMirror/ prosemirror 2322/154 @marijnh beta
Quill quilljs/ quill 11871/697 @jhchen (salesforce) 1.x
Slate ianstormtaylor/ slate 2680/123 @ianstormtaylor beta React

其他已经没有维护的

  • NicEdit
  • YUI Editor
  • Maqetta

浏览器兼容性

以下乃基于各自文档或测试说明,可能在低版本浏览器上部分功能会降级,或存在bug。 注1:E = Edge, Ch = Chrome, Saf = Safari, FF = Firefox 注2:~ 表示通常对 evergreen browser 的支持,即最近两个 stable 版本;某些项目的文档里写的是支持最新的 stable 版本,但应该不会有什么差别。

IE E Ch Saf FF Android iOS Others
UEditor 1.4.x IE6+ ?
UEditor 1.5.x IE8+ ?
UEditor 2.x IE9+ ?
UMEditor 1.2.x IE8+ ?
wangEditor IE8+
wangEditor-mobile Chrome ? UC, QQ, 微信
CKEditor 4 IE8+ ~ ~ ~ ~ Chrome iOS 6+
CKEditor 5 IE11 ? ~ ~ ~ ~ ~
TinyMCE IE8+ ? 1+ 5+ 3+
wysiwyg.js IE6+ ? 4+ 3.1+ 3.5+
Aloha Editor IE8+ ? 11+ 4+ 3.5+
ContentTools IE9+ ? ~ ? ~
MediumEditor IE9+ ~ ~ ~ ~
Subtance IE10+?
Froala V2 IE10+
ProseMirror IE11 ~ ~ ~ ~
Draft.js IE10+ ~ ~ ~ ~ ~ ~
Quill IE11 13+ 47+ 9+ 44+ 5.0+ iPhone 9.3+
Slate ? ? ~ ~ ~

hax avatar Jan 05 '17 07:01 hax

兼容表里的 ~ 是什么意思?

Justineo avatar Jan 10 '17 03:01 Justineo

Draft.js 应该是 IE9+ ?

houkanshan avatar Jan 10 '17 04:01 houkanshan

@Justineo 加了注解了。 @houkanshan 因为是基于React的,所以理论下限是React的支持版本即IE9+,但是根据项目里的issue来看恐怕只考虑IE10+。

hax avatar Jan 10 '17 07:01 hax

@hax 他们小问题是不少,但除了部分 CJK IME 的问题外(只遇到过一个,有个 open PR 修了)应该基本不影响使用。 不过没搜到针对 IE9 的?我们基于 Draft.js 的编辑器目前是测过 IE9+ 的(带 polyfill) ,还没发现仅 IE9 上有的大问题(不过我们的 IE9 用户也不多),仅供参考。

刚测了 Draft.js 首页的 example 倒是有严重问题,但看不到报错,不确定是什么问题

houkanshan avatar Jan 10 '17 08:01 houkanshan

应该增加一下 LISENCE 的描述,比如 Froala 只有收费授权。

Justineo avatar Jun 28 '17 02:06 Justineo

我也有做一个,只是还没剥离,封装,开源,支持ie6+

体验地址。http://mobile.pconline.com.cn/1030/10307117.html

评论和回复能插入图片,就没有什么不可能的了

jincdream avatar Nov 17 '17 07:11 jincdream

KindEditor,Coremail 在用,可以证明其兼容性在 IE8+,不过由于作者不再维护,有一些 pr 还没合并进去。所以,建议作者整理一下,写成 IE9+ 比较保守

aleen42 avatar Feb 28 '18 09:02 aleen42

多谢分享,现在2018年7月我也在调查什么编辑器最好

1c7 avatar Jul 23 '18 08:07 1c7

2018-7-23 写了篇博客,收集了我能找到的所有 rich text 富文本编辑器,

博客地址

http://1c7.me/2018-rich-text-wysiwyg-editor-full-list/ 希望给大家提供一些参考

image

image

1c7 avatar Jul 23 '18 10:07 1c7

顺带一说 Slate.js 挺吊的。

比如 Taskade 就是拿 Slate.js 开发的
地址:https://www.taskade.com/v/ryEBO6RH7m

image

这个 UI 很好看,功能也很多。有兴趣可以去试一下。 我最近在看 Slate.js 文档。很可惜我的现有项目是 Vue.js 的,如果能重新选型的话我估计会选 React.js 就是为了用 Slate.js

1c7 avatar Jul 23 '18 10:07 1c7

@1c7 有兼容 IE8的不?

aleen42 avatar Jul 23 '18 10:07 aleen42

@aleen42 没看有没有兼容 #IE8。他们官网都没有很明确的写出来兼不兼容(所以你只能一个个仔细看深挖这个信息了) 话说现在 2018 年了,你们是什么业务?怎么还要支持 IE8?银行啊?

要兼容 IE8 写起来很不爽吧?不打算离职啊哈哈

1c7 avatar Jul 23 '18 11:07 1c7

coremail,軍工,銀行,學校,研究所,都有 @1c/7

aleen42 avatar Jul 23 '18 11:07 aleen42

@aleen42 这样,明白了。

1c7 avatar Jul 23 '18 11:07 1c7

CKEditor 5 不支持IE11

mydaoyuan avatar Dec 11 '20 05:12 mydaoyuan

可以考虑下使用 https://editor.aleen42.com/,在 KindEditor 的基础上扩展了格式刷和复杂的表格操作

aleen42 avatar Mar 23 '23 05:03 aleen42