【文件属性】:
文件名称:slate-editor:基于SlateJS框架的完整的RTF编辑器
文件大小:236KB
文件格式:ZIP
更新时间:2021-05-13 09:42:10
reactjs lernajs yarn-workspaces slate-editor JavaScript
板岩编辑器
基于框架的完整的RTF编辑器
安装
slate-editor可作为。
yarn add slate-editor
用法
您可以使用所需的插件。 无需使用。
在下面的示例中,我们仅在工具栏中添加带有其按钮的插件。
基本例子
import React from 'react'
import { SlateEditor , SlateToolbar , SlateContent } from 'slate-editor'
import { BoldPlugin , BoldButton } from '@slate-editor/bold-plugin'
const plugins = [ BoldPlugin ( ) ]
const SlateRichTextEditor = ( ) => (
< SlateEditor xss=removed>
网友评论
- 您好,我下载的demo为什么不能播放?appid已改成我的