添加富文本url
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user