- Issue created by @RedwanJamous
- Merge request !19Add bs_grid_col class to prevent unintentional upcasting → (Open) created by Unnamed author
Redwan Jamous → changed the visibility of the branch 2.0.x to hidden.
- Issue was unassigned.
- Status changed to Needs work
8 months ago 10:17am 18 April 2024 Attaching a patch to use with composer...
Marking the issue as needs work since we still need to figure out how to handle existing content...- 🇨🇦Canada b_sharpe
It looks like this works, but also has these classes show up under "Advanced" settings. We'll need to filter here
- Status changed to Needs review
6 months ago 11:22pm 2 July 2024 - 🇨🇦Canada b_sharpe
Now that I've looked at this, I think a better way here is to detect a proper col during upcast. I think this will allow backwards compatibility but still nested divs.
Can you try the patch and confirm?
- 🇧🇪Belgium detroz
The patch cannot be apply on CKEditor Bootstrap Grid 2.1.0-alpha2 and Drupal 10.3.1
- 🇨🇦Canada b_sharpe
@detroz can you give the HTML that's being used in the template?
- 🇧🇪Belgium detroz
The HTML of my CkEditor template :
<div class="div-background"> <p> Nulla eget volutpat orci. Sed eu diam enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Proin vel leo eu erat volutpat venenatis eget sit amet augue. Nullam faucibus suscipit consectetur.</p> </div>
When I try to use this template in a HTML field (empty or not), I have this error on the console :
Uncaught CKEditorError: t.parent.getAttribute is not a function
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#erro... is not a function
model: http://hospital.test/modules/contrib/ckeditor_bs_grid/js/build/bootstrap...
a: http://hospital.test/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor...
Yo: http://hospital.test/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor...
fire: http://hospital.test/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor...
_convertItem: http://hospital.test/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor...
_convertChildren: http://hospital.test/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor...
convertChildren: http://hospital.test/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor...
Ms: http://hospital.test/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor...
ckeditor5-dll.js:5:656533Without the patch 9, the template can be inserted into the HTML field without any problem...
- 🇨🇦Canada b_sharpe
Thanks, very helpful to debug, new patch should work for those cases.
- 🇧🇪Belgium detroz
It's OK for me : now, I can put a div in column or add a template. :D
-
b_sharpe →
committed 125495d5 on 2.1.x
Issue #3441749 by redwan jamous, b_sharpe, detroz: Cannot have div tags...
-
b_sharpe →
committed 125495d5 on 2.1.x
- Status changed to Fixed
about 2 months ago 11:04pm 24 October 2024 Automatically closed - issue fixed for 2 weeks with no activity.