wxb-react-ueditor

### 开发 由于我们的npm.wxb.com 发布npm组件有大小限制,所以把项目dist和 ueditor 的dist目录都忽略了,没提交上去,发不到npm上的都是未编译的源码。 - `npm i` or `yarn` - `npm run build-ueditor` 构建ueditor - `npm start` 启动项目,自动打开浏览器 - 如果修改了 ueditor 里面的代码,请使用 `npm run build-ueditor` 打包,然后用 `npm run upload-ueditor

Usage no npm install needed!

<script type="module">
  import wxbReactUeditor from 'https://cdn.skypack.dev/wxb-react-ueditor';
</script>

README

wxb-react-ueditor

开发

由于我们的npm.wxb.com 发布npm组件有大小限制,所以把项目dist和 ueditor 的dist目录都忽略了,没提交上去,发不到npm上的都是未编译的源码。

  • npm i or yarn
  • npm run build-ueditor 构建ueditor
  • npm start 启动项目,自动打开浏览器
  • 如果修改了 ueditor 里面的代码,请使用 npm run build-ueditor 打包,然后用 npm run upload-ueditor 上传到 cdn。在 WxbReactUeditor 里面修改ueditor.all.min.js的地址。这样修改才能生效
  • npm run release 自动修改版本号,生成 changelog 页面
  • npm run mypublish 发布 npm 包
  • 由于我们目前有项目还在使用 antd 2.x版本的,所以为了兼容2.x和3.x 版本的项目,我们简单粗暴的发布两个wxb-react-ueditor版本,其中2.x.x表示支持旧antd的版本,3.xx表示支持新antd的版本,两个版本之间只有antd版本不同的区别,版本号除了第一个数字不同,后面的应该保持一致。

使用

安装 npm i http://npm.wxb.com/wxb-react-ueditor/-/wxb-react-ueditor-2.0.0.tgz -S or npm i http://npm.wxb.com/wxb-react-ueditor/-/wxb-react-ueditor-3.0.0.tgz -S

具体使用方法参考 example 文件目录