Fixed issue that would prevent source code editing from staging values in wysiwyg (#6455)

Fixes #6306
This commit is contained in:
Rijk van Zanten
2021-06-22 19:56:46 -04:00
committed by GitHub
parent 7c562ec000
commit b77285f3c3

View File

@@ -4,7 +4,7 @@
ref="editorElement"
:init="editorOptions"
:disabled="disabled"
model-events="change keydown blur focus paste ExecCommand"
model-events="change keydown blur focus paste ExecCommand SetContent"
v-model="internalValue"
@onFocusIn="setFocus(true)"
@onFocusOut="setFocus(false)"
@@ -265,7 +265,9 @@ export default defineComponent({
return props.value;
},
set(newValue: string) {
emit('input', newValue);
if (newValue !== props.value && (props.value === null && newValue === '') === false) {
emit('input', newValue);
}
},
});