From 14c6c67a1a4e151b97da8e22b60d5bb3aaed5afe Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Fri, 13 Jan 2023 15:29:16 +0100 Subject: [PATCH] Fix merging tables in TinyMCE [SCI-7697] --- app/javascript/vue/shared/tinymce.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/vue/shared/tinymce.vue b/app/javascript/vue/shared/tinymce.vue index 10da108b0..117a77430 100644 --- a/app/javascript/vue/shared/tinymce.vue +++ b/app/javascript/vue/shared/tinymce.vue @@ -151,7 +151,9 @@ }, wrapTables() { this.$nextTick(() => { - $(this.$el).find('.tinymce-view table').css('float', 'none').wrapAll('
'); + $(this.$el).find('.tinymce-view table').toArray().forEach((table) => { + $(table).css('float', 'none').wrapAll('
'); + }) }); }, initCharacterCount() {