先睹为快,来看下效果:


技术选型
SpringBoot、Spring Security、Oauth2、Vue-element-admin
集成mavon-editor编辑器
- 安装 mavon-editor
npm install mavon-editor --save
- 引入mavon-editor
后台使用
- js文件:index.js
// 全局注册
import Vue from 'vue'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// use
Vue.use(mavonEditor)
new Vue({
'el': '#main',
data() {
return {
value: '' }
}
})
- html文件:index.html
<mavon-editor v-model="form.contents" ref</

本文介绍了如何在SpringBoot项目中结合Vue,使用mavon-editor创建一个在线文档知识库。技术选型包括SpringBoot、Spring Security、Oauth2和Vue-element-admin。详细步骤包括mavon-editor的安装、前后台使用,以及文件上传和自定义工具栏的配置。提供mavon-editor的参考文档链接和源码地址。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



