Skip to content

Commit

Permalink
Fix: Add compatibility class to HTMLField for djangocms-admin-style
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Sep 12, 2024
1 parent e54940f commit 087c99b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion private/js/cms.tiptap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 087c99b

Please sign in to comment.