Commit 09c9f8a8 authored by vben's avatar vben

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

parent 8f332e3c
......@@ -92,6 +92,7 @@
}
);
onMountedOrActivated(() => {
tinymceId.value = snowUuid('tiny-vue');
nextTick(() => {
init();
});
......@@ -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) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment