参考:
https://www.cnblogs.com/daimo/p/7525146.html
https://blog.csdn.net/liujun03/article/details/84453287
1.ダウンロードしたファイルのパッケージhttp://ueditor.baidu.com/website/download.html(私はJSPを使用UTF-8版)
2.パッケージには、静的下に置きます
3. cnpmは--save VUE-ueditorラップをインストール
4.
<DIV CLASS = "ueditor"> <VUE-ueditorラップVモデル= "内容":設定= "MYCONFIG"> </ VUE-ueditorラップ> </ div>
JS
import VueUeditorWrap from 'vue-ueditor-wrap' export default { name: 'needForm', components: {VueUeditorWrap}, data() { return { myConfig: { // 如果需要上传功能,找后端小伙伴要服务器接口地址 // serverUrl: this.$config.baseUrl + 'ueditor/ueditorConfig', // serverUrl: 'http://localhost:8090/ueditor/ueditorConfig', // 你的UEditor资源存放的路径,相对于打包后的index.html UEDITOR_HOME_URL: '/ueditor/', // 编辑器不自动被内容撑高 autoHeightEnabled: false, // 工具栏是否可以浮动 autoFloatEnabled: false, // 初始容器高度 initialFrameHeight: 340, // 初始容器宽度 initialFrameWidth: '100%', // 关闭自动保存 enableAutoSave: true }, content: '' } }, mounted() { his.editor.setContent("1223")) }, watch: { }, methods: { }, destroyed() { } }