diff --git a/src/components/Tinymce/src/Editor.vue b/src/components/Tinymce/src/Editor.vue index 759b5d5a3..a569b76ae 100644 --- a/src/components/Tinymce/src/Editor.vue +++ b/src/components/Tinymce/src/Editor.vue @@ -246,7 +246,7 @@ bindHandlers(e, attrs, unref(editorRef)); } - function setValue(editor: Record, val: string, prevVal?: string) { + function setValue(editor: Record, val?: string, prevVal?: string) { if ( editor && typeof val === 'string' && @@ -263,14 +263,14 @@ watch( () => props.modelValue, - (val: string, prevVal: string) => { + (val, prevVal) => { setValue(editor, val, prevVal); }, ); watch( () => props.value, - (val: string, prevVal: string) => { + (val, prevVal) => { setValue(editor, val, prevVal); }, {