Skip to content

Latest commit

 

History

History
63 lines (51 loc) · 2.18 KB

README-zh_CN.md

File metadata and controls

63 lines (51 loc) · 2.18 KB

xeditor

xEditor 是 Web 端富文本编辑器。目前暂不支持 React 和 Angular 。在线预览

xeditor NPM downloads NPM downloads NPM downloads

Sauce Labs Test Status (for master branch)

xeditor preview

README in English

功能

  • 拖拽上传
  • ajax 图片上传
  • base64 图片显示
  • 扩展 class 名
  • 多语言支持
  • 菜单分类
  • 颜色可配置
  • 样式自定义

相关链接

使用

  • html 代码
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>xeditor</title>
    <script src="https://unpkg.com/xeditor"></script>
  </head>
  <body>
    <div id="xe" class="xe"></div>
    <script>
    var myEditor = new window.xEditor('#xe')
    myEditor.create();
    </script>
  </body>
</html>

运行 demo

  • 下载源码 https://github.com/iq9891/xEditor.git
  • 安装或者升级最新版本 nodeJS(最低v9.x.x)
  • 进入目录,安装依赖包 cd xEditor && yarn install
  • 安装包完成之后,windows 用户运行 npm run dev,Mac 用户运行 npm start
  • 打开浏览器 http://localhost:8080/