vue项目中使用ueditor的实例讲解

前端之家收集整理的这篇文章主要介绍了vue项目中使用ueditor的实例讲解前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

@H_404_0@

以vue-cli生成的项目为例


@H_404_0@

1.static文件夹下先放入ueditor文件


@H_404_0@

2.index.html添加如下代码


<div class="jb51code">
<pre class="brush:xhtml;">
<script type="text/javascript" charset="utf-8" src="static/ueditor/ueditor.config.js">
<script type="text/javascript" charset="utf-8" src="static/ueditor/ueditor.all.min.js">

@H_404_0@

3.webpack.base.conf.js添加如下配置

@H_404_0@

4.index.html中添加

@H_404_0@

5.editor组件

获取
@H_404_0@以上这篇vue项目中使用ueditor的实例讲解就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持编程之家。

猜你在找的Vue相关文章