How to debug why this module isn't working

Created on 23 May 2024, 7 months ago
Updated 17 June 2024, 6 months ago

Hi, for some reason this module doesn't work on my site and I can't figure out why.
It does work on a new Drupal site so it has to do with something related to my setup.

Everything works great but the "upcast" (I think) is broken and removes the divs instead of turning them into <bsGrid>.
This happens when I save (saving itself works fine) and edit the page again, or when after inserting the grid I make a tiny change in the source mode (like fixing a typo in the text).

So this:

<div class="ck-widget bs_grid" contenteditable="false">
    <div class="ck-widget row" data-row-none="none" data-row-sm="none" data-row-md="3_9" data-row-lg="none" data-row-xl="none" data-row-xxl="none" contenteditable="false">
        <div class="col-md-3">
            <p>
                Column 1 content
            </p>
        </div>
        <div class="col-md-9">
            <p>
                Column 2 content
            </p>
        </div>
    </div>
</div>

Gets turned into this:

<p>
    Column 1 contenta
</p>
<p>
    Column 2 content
</p>

I've installed the ckeditor5_dev module and I can confirm that both, the HTML generated and the editor code in the dev module are identical to the ones on the new site where it's working.

Any ideas how to debug this?
How is the JS file built? I can write a bit of JS but working on the minified version of bootstrapGrid.js is too complicated for me.

Any help is appreciated!

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany m-p-j

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024