From 087c99b15d6e01951314ad7af74ac55bca368ff6 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Thu, 12 Sep 2024 13:51:58 +0200 Subject: [PATCH] Fix: Add compatibility class to HTMLField for djangocms-admin-style --- private/js/cms.tiptap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/private/js/cms.tiptap.js b/private/js/cms.tiptap.js index f8aeef16..048f8a71 100644 --- a/private/js/cms.tiptap.js +++ b/private/js/cms.tiptap.js @@ -192,7 +192,8 @@ class CMSTipTapPlugin { if (el.tagName === 'TEXTAREA') { const div = document.createElement('div'); div.id = el.id + '_editor'; - div.classList.add('cms-editor-inline-wrapper'); + div.classList.add('cms-editor-inline-wrapper', 'cke'); + // .cke for compatibility with djangocms-admin-style; el.parentNode.insertBefore(div, el.nextSibling); el.dataset.textarea = el.id; if (inModal) {