|
@@ -34,6 +34,10 @@ export default {
|
|
|
type: Boolean,
|
|
|
default: false,
|
|
|
},
|
|
|
+ placeholder:{
|
|
|
+ type:String,
|
|
|
+ default:"请输入正文"
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
isClear(val) {
|
|
@@ -91,6 +95,7 @@ export default {
|
|
|
//忽略粘贴内容中的图片
|
|
|
this.editor.config.pasteIgnoreImg = false;
|
|
|
this.editor.config.showLinkImg = false;
|
|
|
+ this.editor.config.placeholder = this.placeholder;
|
|
|
var that = this;
|
|
|
this.editor.config.customUploadImg = function (files, insert) {
|
|
|
const loading = Loading.service({
|