Skip to Content
Docs开发前端开发富文本编辑器

npm 模块

slate 

  1. 数据结构 

  2. 自定义标签渲染 

  3. 清空编辑器

const clearEditor = (editor: BaseEditor & ReactEditor) => { editor.children.forEach(() => { Transforms.removeNodes(editor, { at: [0] }); }); };
  1. 编辑器插入
Transforms.insertNodes(editor, nodes);

quilljs 

typist : 基于 Tiptap 的编辑器。GitHub starslast commitnpm downloads

Last updated on