From 2954cba624c25ee7ee03cbb9db43f5c011de7b40 Mon Sep 17 00:00:00 2001 From: imesh-orangehrm Date: Wed, 13 Nov 2024 16:02:40 +0530 Subject: [PATCH] TAR-1964: Update OXD tinymce component to emit internal editor instance when ready (#794) * emit editor instance * Update changelog.md --- changelog.md | 2 ++ components/src/core/components/TinyMce/TinyMce.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 162937465..8a432ce69 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +2024-11-13 - 52366879d1e5cf23bc23ebd47a2b65c4fbf7b903 - TinyMce/TinyMce.vue - emit editor instance + 2024-11-13 - 4bbea12b487254178cac9ca96687bec06379aa7c - PopOver.vue, Dialog.vue, PopOver.stories.js, pop-over.spec.ts - Modified PopOver component to be able to configure as persistent or not, Modified Dialog component to not to be able to close when ESC pressed while persistent is set to true 2024-11-11 - 30e71393cff4e116c842c56bf35ef84bd659448d - components/Icon/icons.ts - Add oxd-on-leave,oxd-holiday,oxd-disabled-url,oxd-generate-link,oxd-enable-url icons diff --git a/components/src/core/components/TinyMce/TinyMce.vue b/components/src/core/components/TinyMce/TinyMce.vue index 16bf4a368..dd62f974f 100644 --- a/components/src/core/components/TinyMce/TinyMce.vue +++ b/components/src/core/components/TinyMce/TinyMce.vue @@ -141,7 +141,7 @@ export default defineComponent({ editor.allowed_file_types = () => { return props.allowedFileTypes; }; - + emit('tinymce:editor-ready', editor); setTinymceImage.value = (file: File) => { const reader = new FileReader(); reader.readAsDataURL(file);