mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fixed issue that would prevent source code editing from staging values in wysiwyg (#6455)
Fixes #6306
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user