更换编辑器
This commit is contained in:
@@ -24,15 +24,13 @@
|
||||
- [✅] API文件已创建: `platform/src/api/notebook.js`
|
||||
- [✅] 主页面已创建: `platform/src/views/apps/notebook/index.vue`
|
||||
- [✅] 编辑器组件已创建: `platform/src/views/apps/notebook/components/edit.vue`
|
||||
- [✅] WangEditor组件已创建: `platform/src/views/apps/notebook/components/WangEditor.vue`
|
||||
- [✅] TiptapEditor组件已创建: `platform/src/views/components/TiptapEditor.vue`
|
||||
|
||||
### 4. 依赖检查
|
||||
- [ ] 前端安装 WangEditor
|
||||
- [ ] 前端安装 Tiptap
|
||||
```bash
|
||||
cd platform
|
||||
npm install @wangeditor/editor
|
||||
# 或
|
||||
yarn add @wangeditor/editor
|
||||
npm install @tiptap/vue-3 @tiptap/pm @tiptap/starter-kit @tiptap/extension-underline @tiptap/extension-text-style @tiptap/extension-color @tiptap/extension-highlight @tiptap/extension-placeholder @tiptap/extension-link @tiptap/extension-image @tiptap/extension-table @tiptap/extension-table-row @tiptap/extension-table-cell @tiptap/extension-table-header @tiptap/extension-text-align
|
||||
```
|
||||
|
||||
### 5. 菜单配置
|
||||
@@ -200,11 +198,11 @@ SOURCE sql/yz_platform_notebook.sql;
|
||||
|
||||
### 3. 前端错误
|
||||
|
||||
**问题**: WangEditor 未定义
|
||||
**问题**: TiptapEditor 未定义
|
||||
|
||||
**解决**:
|
||||
```bash
|
||||
npm install @wangeditor/editor
|
||||
npm install @tiptap/vue-3 @tiptap/pm @tiptap/starter-kit
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user