没有合适的资源?快使用搜索试试~ 我知道了~
draftjs2html
共17个文件
js:11个
eslintrc:1个
lock:1个
需积分: 12 0 下载量 6 浏览量
2021-03-26
15:12:44
上传
评论
收藏 92KB ZIP 举报
温馨提示
DraftJS转HTML 用于将DraftJS编辑器内容转换为纯HTML的库。 这是我为我的一个项目编写HTML库的草稿。 我将其开源,以便其他人也可以从我的工作中受益。 安装 npm install draftjs-to-html 用法 import { convertToRaw } from 'draft-js' ; import draftToHtml from 'draftjs-to-html' ; const rawContentState = convertToRaw ( editorState . getCurrentContent ( ) ) ; const markup = draftToHtml ( rawContentState , hashtagConfig , directional , customEntityTransform )
资源推荐
资源详情
资源评论
收起资源包目录
draftjs2html-master.zip (17个子文件)
draftjs2html-master
rollup.config.js 277B
yarn.lock 274KB
lib
draftjs-to-html.js 21KB
js
__test__
commonTest.js 887B
.eslintrc 198B
blockTest.js 6KB
mainTest.js 6KB
list.js 3KB
index.js 1KB
common.js 556B
block.js 15KB
config
test-compiler.js 164B
test-setup.js 366B
LICENSE 1KB
.gitignore 13B
readme.md 4KB
package.json 1KB
共 17 条
- 1
资源评论
Dilwanga
- 粉丝: 23
- 资源: 4681
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功