提交 09c9f8a8 作者: vben

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

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论