如图
代码如下:
<VueUeditorWrap v-model="message" :config="editorConfig"/>
import VueUeditorWrap from "vue-ueditor-wrap";
export default {
name: "addFile",
components: {
VueUeditorWrap
},
data(){
return{
title:'',
imageURL:'',
content:'',
dialogVisible:false,
otfFlag:false,
sendParam:{
id:'',
name:'',
desc:'',
fileContent: {
content:''
},
status:0
},
message: '', // editor内容
// 简单配置
editorConfig: {
autoHeightEnabled: false,
initialFrameHeight: 300,
initialFrameWidth: '100%',
// 上传文件接口, 报错属于正常,若需要验证可使用(也是盗大神的)http://35.201.165.105:8000/controller.php
// 调试完毕打包上线则切换回/static/UEditor/php/controller.php即可,不用做其他处理
serverUrl: '',
// UEDITOR_HOME_URL: '../../static/ueditor/'
UEDITOR_HOME_URL: '/glxt/static/ueditor/',
}
}
},