fix: 编辑器快捷键保存重复

This commit is contained in:
kuaifan 2025-09-28 05:19:27 +08:00
parent 591f9e61fb
commit 6a63ceaecc

View File

@ -456,14 +456,6 @@ export default {
this.submitNewContent();
}
});
editor.on('KeyDown', (e) => {
if (e.metaKey || e.ctrlKey) {
if (e.keyCode === 83) {
e.preventDefault();
this.$emit('editorSave', e);
}
}
});
editor.on('Change', (e) => {
if (this.editor !== null) {
if (this.getContent() !== this.value) {