mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 08:55:52 +08:00
更换editor,可支持拖拽式上传
This commit is contained in:
@@ -15,7 +15,13 @@
|
||||
<Input v-model="form.article.title" clearable style="width: 40%" />
|
||||
</FormItem>
|
||||
<FormItem class="form-item-view-el" label="文章内容" prop="content">
|
||||
<editor openXss v-model="form.article.content"></editor>
|
||||
|
||||
<editor
|
||||
ref="editor"
|
||||
openXss
|
||||
v-model="form.article.content"
|
||||
:init="{ ...initEditor,height:'800px' }"
|
||||
></editor>
|
||||
</FormItem>
|
||||
</Form>
|
||||
<div slot="footer">
|
||||
@@ -33,12 +39,12 @@ import {
|
||||
updatePrivacy,
|
||||
getPrivacy,
|
||||
} from "@/api/pages";
|
||||
import editor from "@/views/my-components/lili/editor";
|
||||
|
||||
import Editor from "@tinymce/tinymce-vue";
|
||||
import { initEditor } from "@/views/lili-components/editor/config";
|
||||
export default {
|
||||
name: "privacy",
|
||||
components: {
|
||||
editor,
|
||||
components: {
|
||||
editor: Editor,
|
||||
},
|
||||
props: {
|
||||
selected: {
|
||||
@@ -48,6 +54,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
initEditor,
|
||||
loading: false, // 表单加载状态
|
||||
modalVisible: false, // 添加或编辑显示
|
||||
treeDataDefault: [],
|
||||
|
||||
Reference in New Issue
Block a user