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

This commit is contained in:
vben 2020-12-31 22:33:38 +08:00
parent 8f332e3cd4
commit 09c9f8a881

View File

@ -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) => {