0.5.0 • Published 6 years ago

tb-editor v0.5.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

TB Editor

基于 react 和 slate.js 的所见即所得富文本编辑器, 支持文本、图片、链接、emoji 等元素插入

在线演示

https://durianicecream.github.io/tb-editor/example/dist/index

安装

npm install tb-editor --save

cd tb-editor

npm install

npm start

依赖版本

react ^16.3

slate ~0.33

配置项

uploadPorps

配置项类型必填项默认值说明
defaultValuestring | htmlfalse默认值,可以配合异步接口
onChangefunctiontruenull钩子函数,监听输入并获取实时 html 值 (value) => {}
uploadPropsobjectfalse{}如果不填则无法开启图片上传功能,
API 请参考 Antd.Upload
0.5.0

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.9

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago