[关闭]
@dlutwuwei 2016-11-29T06:33:41.000000Z 字数 390 阅读 696

draft-js调研

editor


draft-js是facebook网站使用的编辑器

https://facebook.github.io/draft-js/

基于ract开发,不使用contenteditable,避免这个属性的兼容性问题,利用ract将modal和dom映射,提供丰富的api进行富文本数据的处理。
基本状态
editorState
contentState
selectionState

daft-js-diff是对draft-js的内容进行diff高亮的工具,里面包含文本的diff算法,可以作为以后增量更新使用
https://github.com/Soreine/draft-js-diff

http://s0.ipstatp.com/((?:js|css)/pgc/.*).(?:\w+).(css|js)

http://localhost:3000/static/2

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注