upd: 输入回调设置到表单值

This commit is contained in:
2025-08-01 21:48:29 +08:00
parent b2764afe78
commit d4e3b50d14
2 changed files with 0 additions and 2 deletions
@@ -108,7 +108,6 @@ export default {
// 纯文本内容 // 纯文本内容
const text = editor.getText() const text = editor.getText()
this.$emit('change', html, text) this.$emit('change', html, text)
this.$emit('input', html, text)
}, },
/** /**
* 编辑器销毁时的回调函数。调用 editor.destroy() 即可销毁编辑器 * 编辑器销毁时的回调函数。调用 editor.destroy() 即可销毁编辑器
@@ -68,7 +68,6 @@ export default {
this.editor.setOption('readOnly', this.readOnly) this.editor.setOption('readOnly', this.readOnly)
this.editor.on('change', cm => { this.editor.on('change', cm => {
this.$emit('change', cm.getValue()) this.$emit('change', cm.getValue())
this.$emit('input', cm.getValue())
}) })
}, },
methods: { methods: {