Commit 09c9f8a881d1f2c76b11fdeff08f3ca2893e0886

Authored by vben
1 parent 8f332e3c

fix(tinymce): the editor reports an error under keep-alive #152

src/components/Tinymce/src/Editor.vue
... ... @@ -92,6 +92,7 @@
92 92 }
93 93 );
94 94 onMountedOrActivated(() => {
  95 + tinymceId.value = snowUuid('tiny-vue');
95 96 nextTick(() => {
96 97 init();
97 98 });
... ... @@ -152,6 +153,7 @@
152 153 function bindModelHandlers(editor: any) {
153 154 const modelEvents = attrs.modelEvents ? attrs.modelEvents : null;
154 155 const normalizedEvents = Array.isArray(modelEvents) ? modelEvents.join(' ') : modelEvents;
  156 +
155 157 watch(
156 158 () => props.modelValue,
157 159 (val: string, prevVal: string) => {
... ...