|
|
@ -92,6 +92,7 @@ |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
onMountedOrActivated(() => { |
|
|
onMountedOrActivated(() => { |
|
|
|
|
|
tinymceId.value = snowUuid('tiny-vue'); |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
init(); |
|
|
init(); |
|
|
}); |
|
|
}); |
|
|
@ -152,6 +153,7 @@ |
|
|
function bindModelHandlers(editor: any) { |
|
|
function bindModelHandlers(editor: any) { |
|
|
const modelEvents = attrs.modelEvents ? attrs.modelEvents : null; |
|
|
const modelEvents = attrs.modelEvents ? attrs.modelEvents : null; |
|
|
const normalizedEvents = Array.isArray(modelEvents) ? modelEvents.join(' ') : modelEvents; |
|
|
const normalizedEvents = Array.isArray(modelEvents) ? modelEvents.join(' ') : modelEvents; |
|
|
|
|
|
|
|
|
watch( |
|
|
watch( |
|
|
() => props.modelValue, |
|
|
() => props.modelValue, |
|
|
(val: string, prevVal: string) => { |
|
|
(val: string, prevVal: string) => { |
|
|
|