Skip to content

Commit

Permalink
fix(tinymce): the editor reports an error under keep-alive #152
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Dec 31, 2020
1 parent 8f332e3 commit 09c9f8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Tinymce/src/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
}
);
onMountedOrActivated(() => {
tinymceId.value = snowUuid('tiny-vue');
nextTick(() => {
init();
});
Expand Down Expand Up @@ -152,6 +153,7 @@
function bindModelHandlers(editor: any) {
const modelEvents = attrs.modelEvents ? attrs.modelEvents : null;
const normalizedEvents = Array.isArray(modelEvents) ? modelEvents.join(' ') : modelEvents;
watch(
() => props.modelValue,
(val: string, prevVal: string) => {
Expand Down

0 comments on commit 09c9f8a

Please sign in to comment.