Skip to content

Commit 09c9f8a

Browse files
committed
fix(tinymce): the editor reports an error under keep-alive vbenjs#152
1 parent 8f332e3 commit 09c9f8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Tinymce/src/Editor.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
}
9393
);
9494
onMountedOrActivated(() => {
95+
tinymceId.value = snowUuid('tiny-vue');
9596
nextTick(() => {
9697
init();
9798
});
@@ -152,6 +153,7 @@
152153
function bindModelHandlers(editor: any) {
153154
const modelEvents = attrs.modelEvents ? attrs.modelEvents : null;
154155
const normalizedEvents = Array.isArray(modelEvents) ? modelEvents.join(' ') : modelEvents;
156+
155157
watch(
156158
() => props.modelValue,
157159
(val: string, prevVal: string) => {

0 commit comments

Comments
 (0)