Merge pull request #4825 from artoscinote/ma_SCI_7697

Fix merging tables in TinyMCE [SCI-7697]
This commit is contained in:
artoscinote 2023-01-13 15:32:39 +01:00 committed by GitHub
commit 12ec63c576
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,9 @@
},
wrapTables() {
this.$nextTick(() => {
$(this.$el).find('.tinymce-view table').css('float', 'none').wrapAll('<div style="overflow: auto"></div>');
$(this.$el).find('.tinymce-view table').toArray().forEach((table) => {
$(table).css('float', 'none').wrapAll('<div style="overflow: auto"></div>');
})
});
},
initCharacterCount() {