$ npm install
$ npm run serve
$ open http://localhost:8080 //文章渲染
$ open http://localhost:8080/tinymce //tinymce编辑器
$ tinymce http://localhost:3000
npm install @iruxu/editor
- 指定模块
import Article from "@iruxu/editor/src/Article.vue";
import Tinymce from "@iruxu/editor/src/Tinymce.vue";
文章
<article :content="content" directorybox="#directory" />
编辑器
<script src="path/to/static/tinymce/tinymce.min.js?v=0.1.0"></script>
<Tinymce v-model="content" :attachmentEnable="true" :resourceEnable="true" :height="300" />
批量附件上传插入/资源快捷查询插入
<Upload @insert="insertWhere" @update="getList" @htmlUpdate="getHTML" />
需要在引用的库内用 <script src="path/to/static/**"></script>
, 一般是在 index.html 内引用。