|
@@ -52,7 +52,7 @@
|
|
|
ref="editor"
|
|
|
uploadName="upfile"
|
|
|
v-model="formModel.value"
|
|
|
- :url="uploadUrl"
|
|
|
+ :url="uploadUrl1"
|
|
|
:config="editorConfig"
|
|
|
style="width: 90%"
|
|
|
></mce-editor>
|
|
@@ -124,6 +124,11 @@ export default {
|
|
|
headers: {
|
|
|
Authorization: getToken(),
|
|
|
},
|
|
|
+ uploadUrl1: Constant.serverUrl + "/tinymce/upload?token=" + getToken(),
|
|
|
+ editorConfig: {
|
|
|
+ height: 300,
|
|
|
+ width: 660,
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -188,9 +193,6 @@ export default {
|
|
|
return isJPG && isLt2M;
|
|
|
},
|
|
|
},
|
|
|
- components: {
|
|
|
- "mce-editor": MceEditor,
|
|
|
- },
|
|
|
mounted: function () {
|
|
|
var self = this;
|
|
|
|
|
@@ -215,6 +217,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // if(self.formModel.type=='longtext'){
|
|
|
+ // if (self.formModel.value != null) {
|
|
|
+ // self.$refs.editor.setContent(self.formModel.value);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
} else {
|
|
|
self.$message.error(jsonData.message + "");
|
|
|
}
|
|
@@ -223,6 +231,9 @@ export default {
|
|
|
self.$message.error(error + "");
|
|
|
});
|
|
|
},
|
|
|
+ components: {
|
|
|
+ "mce-editor": MceEditor,
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|