编辑文章富文本粘贴图片修复

master 智信云管理系统V1.1
yujialong 3 years ago
parent f825231fc0
commit 257ddaccc8
  1. 7
      src/components/quill/options.js
  2. 19
      src/views/title/Editphoto.vue

@ -5,5 +5,12 @@ export default [
[{ "list": "ordered" }, { "list": "bullet" }],
[{ "script": "sub" }, { "script": "super" }],
[{ "indent": "-1" }, { "indent": "+1" }],
[{ "direction": "rtl" }],
[{ "size": ["small", false, "large", "huge"] }],
[{ "header": [1, 2, 3, 4, 5, 6, false] }],
[{ "color": [] }, { "background": [] }],
[{ "font": [] }],
[{ "align": [] }],
["clean"],
["link", "image", "video"]
];

@ -48,13 +48,7 @@
></el-input>
</el-form-item>
<el-form-item label="文章内容" :label-width="formLabelWidth">
<!-- 富文本编辑器 -->
<quill-editor
ref="text"
v-model="photoForm.textContent"
class="myQuillEditor"
:options="editorOption"
/>
<quill :border="true" v-model="photoForm.textContent" :height="300" />
<el-upload class="avatar-uploaders"
action="http://zxyicloud.com/msdw/aliyun/uploadFiles"
name="img"
@ -151,12 +145,7 @@
</el-upload>
</el-form-item>
<el-form-item label="文章内容" :label-width="formLabelWidth">
<quill-editor
ref="text"
v-model="videoForm.textContent"
class="myQuillEditor"
:options="editorOption"
/>
<quill :border="true" v-model="videoForm.textContent" :height="300" />
<el-upload class="avatar-uploaders"
action="http://zxyicloud.com/msdw/aliyun/uploadFiles"
name="img"
@ -274,7 +263,7 @@
</template>
<script>
import { editArticle } from "@/apis/request.js";
import { quillEditor } from "vue-quill-editor";
import quill from "@/components/quill";
import { allColumn } from "@/apis/request.js";
import moment from "moment";
import { joggle } from "@/apis/request.js";
@ -282,7 +271,7 @@ import { getColumnallarticle } from "@/apis/request.js";
import { getColumnarticle } from "@/apis/request.js";
export default {
components: {
quillEditor,
quill,
},
data() {

Loading…
Cancel
Save