没有合适的资源?快使用搜索试试~ 我知道了~
draftjs-to-html:用于将Draftjs编辑器内容状态转换为HTML的库
共22个文件
js:11个
eslintrc:2个
eslintignore:1个
需积分: 50 0 下载量 190 浏览量
2021-05-02
16:17:38
上传
评论
收藏 93KB 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 )
资源推荐
资源详情
资源评论
收起资源包目录
draftjs-to-html-master.zip (22个子文件)
draftjs-to-html-master
.gitignore 41B
rollup.config.js 277B
LICENSE 1KB
.eslintrc 114B
package.json 1KB
readme.md 4KB
.babelrc 39B
config
test-compiler.js 164B
test-setup.js 366B
.flowconfig 308B
js
list.js 2KB
__test__
commonTest.js 887B
mainTest.js 6KB
.eslintrc 198B
blockTest.js 6KB
block.js 15KB
common.js 556B
index.js 1KB
.eslintignore 35B
.npmignore 242B
yarn.lock 275KB
lib
draftjs-to-html.js 20KB
共 22 条
- 1
资源评论
羊欲穷
- 粉丝: 88
- 资源: 4591
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功