You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
王福朋 b519a5c6a7 chore: build 3 years ago
.github chore: ci release 流程增加了 e2e 测试 4 years ago
.vscode fix: insertKeys 4 years ago
build chore: build 3 years ago
cypress test: 添加了 cypress e2e 到 ci 流程 4 years ago
docs refactor: remove packages/editor-for-react 4 years ago
packages chore: build 3 years ago
scripts workflow: 完善了 release 流程 4 years ago
tests refactor: parseHtml 不用 Dom7 格式 4 years ago
.browserslistrc chore: support style 4 years ago
.cz-config.js refactor: 扩展 API 增加 registerModule 4 years ago
.eslintignore chore: init lerna project 4 years ago
.eslintrc.js feat: text and toolbar 4 years ago
.gitignore chore: remove packages/editor-for-vue 4 years ago
.npmignore chore: init lerna project 4 years ago
.prettierrc.js refactor: editor config 4 years ago
.yarnrc workflow: 完善了 release 流程 4 years ago
LICENSE chore: less files 4 years ago
README-en.md docs: 错别字 4 years ago
README.md docs: readme 4 years ago
babel.config.json refactor: remove packages/editor-for-react 4 years ago
commitlint.config.js chore: init lerna project 4 years ago
cypress.json test: 添加了 cypress e2e 测试模块 4 years ago
jest.config.js chore: 调整测试文件命名和目录风格一致 4 years ago
lerna.json chore: we-2021 改为 wangEditor-v5 4 years ago
package.json refactor: remove packages/editor-for-react 4 years ago
tsconfig.json fix: 优化 custom-types.d.ts 中类型声明,修复测试文件 ts 报错 4 years ago
yarn.lock chore: 更新 nanoid 到 v3.2.0 4 years ago

README.md

wangEditor (v5 公测中...)

English README

开源 Web 富文本编辑器,开箱即用,配置简单

使用

import '@wangeditor/editor/dist/css/style.css'
import { createEditor, createToolbar } from '@wangeditor/editor'

// 创建编辑器
const editor = createEditor({
  selector: '#editor-container'
})
// 创建工具栏
const toolbar = createToolbar({
  editor,
  selector: '#toolbar-container'
})

兼容性

  • 兼容主流的 PC 浏览器,如 Chrome Firefox Safari Edge 等
  • 暂不支持移动端(后续支持~)
  • 不再支持 IE 浏览器

交流