1.0.1 • Published 3 years ago

ts-editor v1.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

ts-editor

汇总 OPP 中自定义的 slate 规则,重新输出 Editor

环境

yarn install
yarn start/build/lib
  • OPP 规则如有调整,可同步对应文件过来编译
  • 如需 build 后直接将编译好的 bundle.js 放到 ts 目录下,可在 .env 中设置好对应路径

使用

<textarea name="description" class="ts-editor-value" style="display:none;">#ARGUMENTS.stcFormURLVars.description#</textarea>
<div class="maxWidth ts-editor"></div>
  • 数据来源于 .ts-editor-value 控件的 value
  • 显示位于 .ts-editor 中
  • 如需触发 change 事件,可在 .ts-editor-value 控件上添加属性 trigger="change"