添加富文本url

This commit is contained in:
熊丽君
2021-07-26 12:01:29 +08:00
parent a3090ba6ae
commit 6797895b10
7 changed files with 205 additions and 78 deletions

View File

@ -47,7 +47,9 @@
<el-input placeholder="请输入" v-model="ruleForm.source"></el-input>
</el-form-item>
<el-form-item label="正文" prop="text">
<editor v-model="ruleForm.text" :min-height="192" />
<div id="text">
<editor v-model="ruleForm.text" :min-height="192" />
</div>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('ruleForm')"
@ -155,6 +157,16 @@ export default {
// this.$refs[formName].resetFields();
// }
},
watch: {
ruleForm: {
handler: function() {
this.$nextTick(() => {
this.formatRichText(this.ruleForm.downloadUrl);
});
}
},
deep: true
},
created() {
let { id } = this.$route.query;
if (id) {