修改
This commit is contained in:
parent
7595573c0d
commit
6a34996f18
@ -553,7 +553,8 @@ export default {
|
||||
bottomclickevent(uitem, index, uindex) {
|
||||
if (
|
||||
this.form.taskNodeType != "QUESTIONNAIRE_SCALE" &&
|
||||
this.form.taskNodeType != "PROPAGANDA_ARTICLE"
|
||||
this.form.taskNodeType != "PROPAGANDA_ARTICLE" &&
|
||||
this.form.taskNodeType != "PHONE_OUTBOUND"
|
||||
) {
|
||||
this.$refs.wangeditor.emit();
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div style="border: 1px solid #ccc;">
|
||||
<Toolbar style="border-bottom: 1px solid #ccc" :editor="editor" :defaultConfig="toolbarConfig" :mode="mode" />
|
||||
<Editor style="height: 500px; overflow-y: hidden;" v-model="html" :defaultConfig="editorConfig" :mode="mode"
|
||||
disabled @onChange="onChange" @onCreated="onCreated" @onFocus="handleFocus" />
|
||||
@onChange="onChange" @onCreated="onCreated" @onFocus="handleFocus" />
|
||||
<el-dialog title="添加画像标签字段" :visible.sync="labelshow" width="40%" :before-close="beforeClose">
|
||||
<el-cascader-panel :options="labeloptions" @change="panelchange" v-if="labelshow"
|
||||
:props="{ value: 'labelFieldId', label: 'fieldName', children: 'labelFieldContentList' }"></el-cascader-panel>
|
||||
@ -96,9 +96,6 @@ export default ({
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
disable() {
|
||||
this.editor.disable()
|
||||
},
|
||||
emit() {
|
||||
this.$emit("on-nodeContent", { nodeContent: this.html });
|
||||
},
|
||||
@ -181,6 +178,7 @@ export default ({
|
||||
},
|
||||
onCreated(editor) {
|
||||
this.editor = Object.seal(editor);
|
||||
this.editor.disable()
|
||||
},
|
||||
onChange(editor) {
|
||||
// console.log("onChange", editor.getHtml()); // onChange 时获取编辑器最新内容
|
||||
@ -229,7 +227,7 @@ class MyButtonMenu3 { // JS 语法
|
||||
}
|
||||
// 菜单是否需要禁用(如选中 H1 ,“引用”菜单被禁用),用不到则返回 false
|
||||
isDisabled(editor) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
// 点击菜单时触发的函数
|
||||
exec(editor, value) {
|
||||
@ -254,7 +252,7 @@ class MyButtonMenu4 { // JS 语法
|
||||
}
|
||||
// 菜单是否需要禁用(如选中 H1 ,“引用”菜单被禁用),用不到则返回 false
|
||||
isDisabled(editor) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
// 点击菜单时触发的函数
|
||||
exec(editor, value) {
|
||||
@ -365,7 +363,7 @@ function renderAttachment(elem, children, editor) {
|
||||
on: { click() { } /* 其他... */ },
|
||||
},
|
||||
// img 没有子节点,所以第三个参数不用写
|
||||
[fileSpan, iconVnode]
|
||||
[fileSpan]
|
||||
);
|
||||
const nameVnode = h(
|
||||
// HTML tag
|
||||
@ -382,7 +380,7 @@ function renderAttachment(elem, children, editor) {
|
||||
on: { click() { } /* 其他... */ },
|
||||
},
|
||||
// img 没有子节点,所以第三个参数不用写
|
||||
[fileName, nameiconVnode]
|
||||
[fileName]
|
||||
);
|
||||
// 附件元素 vnode
|
||||
const attachVnode = h(
|
||||
@ -470,7 +468,7 @@ function renderAttachmenttwo(elem, children, editor) {
|
||||
on: { click() { } /* 其他... */ },
|
||||
},
|
||||
// img 没有子节点,所以第三个参数不用写
|
||||
[fileSpan, iconVnode]
|
||||
[fileSpan]
|
||||
);
|
||||
const nameVnode = h(
|
||||
// HTML tag
|
||||
@ -486,7 +484,7 @@ function renderAttachmenttwo(elem, children, editor) {
|
||||
on: { click() { } /* 其他... */ },
|
||||
},
|
||||
// img 没有子节点,所以第三个参数不用写
|
||||
[fileName, nameiconVnode]
|
||||
[fileName]
|
||||
);
|
||||
// 附件元素 vnode
|
||||
const attachVnode = h(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user