tb-editor

0.5.0 • Public • Published

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

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

Readme

Keywords

Package Sidebar

Install

npm i tb-editor

Weekly Downloads

1

Version

0.5.0

License

MIT

Unpacked Size

1.18 MB

Total Files

35

Last publish

Collaborators

  • durarinicecream