draftjs_exporter:用于将Draft.js ContentState转换为HTML的库

时间:2021-05-02 19:33:34
【文件属性】:
文件名称:draftjs_exporter:用于将Draft.js ContentState转换为HTML的库
文件大小:90KB
文件格式:ZIP
更新时间:2021-05-02 19:33:34
python exporter draft-js rich-text draftjs-exporter Draft.js导出器 该库可将Rich Text从Draft.js原始ContentState转换为HTML。 它是沿着发展富文本编辑器,。 查看以及我们的。 为什么 是一个用于的富文本编辑器框架。 它的方法与大多数富文本编辑器不同,因为它不将数据存储为HTML,而是以其自己的表示为ContentState的表示形式存储。 当必须在Python生态系统中完成ContentState到HTML的转换时,此导出器很有用。 最初的用例是对Wagtail / Django站点中的富文本编辑器管理的内容进行更多控制。 如果您想阅读全文,请查看我们的博客文章: 。 特征 该项目遵循语义版本控制,并测量性能和代码覆盖率。 使用mypy检查代码。 生成HTML的广泛配置。 默认,可扩展的块和内联样式图,用于常见HTML元素。 将换行符转换为
元素。 在程序框图中定义任何属性–元素的自
【文件预览】:
draftjs_exporter-main
----.prettierignore(95B)
----.gitignore(2KB)
----setup.cfg(2KB)
----README.md(14KB)
----draftjs_exporter()
--------utils()
--------entity_state.py(3KB)
--------style_state.py(2KB)
--------types.py(1KB)
--------constants.py(1KB)
--------composite_decorators.py(2KB)
--------__init__.py(151B)
--------wrapper_state.py(6KB)
--------html.py(7KB)
--------py.typed(0B)
--------command.py(2KB)
--------engines()
--------error.py(98B)
--------dom.py(4KB)
--------defaults.py(2KB)
--------options.py(3KB)
----.nvmrc(3B)
----CHANGELOG.md(28KB)
----.github()
--------PULL_REQUEST_TEMPLATE.md(978B)
--------workflows()
--------ISSUE_TEMPLATE()
----tests()
--------test_output.py(50KB)
--------test_dom.py(6KB)
--------test_constants.py(942B)
--------utils()
--------test_exports.py(4KB)
--------test_defaults.py(671B)
--------test_options.py(4KB)
--------test_style_state.py(6KB)
--------test_entity_state.py(5KB)
--------test_wrapper_state.py(6KB)
--------test_entities.py(3KB)
--------test_exports.json(40KB)
--------__init__.py(111B)
--------test_html.py(8KB)
--------test_command.py(2KB)
--------test_composite_decorators.py(7KB)
--------engines()
----example.py(26KB)
----docs()
--------README.md(6KB)
--------SUPPORT.md(1KB)
--------SECURITY.md(610B)
--------CONTRIBUTING.md(3KB)
--------CODE_OF_CONDUCT.md(3KB)
--------example.md(4KB)
----.githooks()
--------deploy(698B)
--------pre-commit(2KB)
----LICENSE(1KB)
----stubs()
--------bs4.pyi(250B)
--------lxml()
----package.json(429B)
----.coveragerc(666B)
----prettier.config.js(285B)
----requirements.txt(390B)
----MANIFEST.in(158B)
----benchmark.py(3KB)
----pyproject.toml(456B)
----setup.py(2KB)
----.editorconfig(585B)
----tox.ini(1000B)
----Makefile(2KB)
----package-lock.json(392B)

网友评论