- π³π±Netherlands ricovandevin
This seems to work already. CKeditor is already adding a paragraph by default (either for an empty field or when pressing enter at the end of the content in an existing field). I have not other option than to add a layout in the paragraph. When I do so, CKeditor replaces the paragraph by the markup for the layout and adds a paragraph inside the columns.
Maybe this issue has been fixed by changes in core?
- Status changed to Fixed
9 months ago 10:05am 31 May 2024 - π³π±Netherlands ricovandevin
The CKEditor 5 plugin for CKEditor Layouts has been rewritten in 2.1.0. We now explicitly add a P tag in every region of the layout when converting the layout markup to the CKEditor 5 model.
We are testing version 2.1 of CKEditor Layouts and we ran into in something that I would describe as buggy behavior.
The focus for layout columns is not what you expect. When clicking on a column the column seems to become draggable for a short instance and then the editor decides what element it should place the cursor in. If it is the first column in a layout, this sort of works. If you click on the second column, the cursor jumps to the first 'editable' element. If there isn't any, again it sort of works and the cursor is placed inside the clicked column. If there is an editable element, the cursor jumps to that element.To reproduce, add a paragraph with some text and then add a layout with multiple columns and try clicking on a second or third column inside the layout.
The fix seems simple though, just make the column an editable element instead of a container.
- πΊπΈUnited States helianthropy
This might need to be a different issue, but Iβve tested the patch from comment #7 and it resolves the issue I had where text was not selectable by mouse pointer nor keyboard. Reporting that here as a review of the patch because it totally salvaged my use of the module.
Automatically closed - issue fixed for 2 weeks with no activity.
- πΊπΈUnited States sonfd Portland, ME
I opened a new issue for this and created an MR with r.van.doorn's patch here: π Can't edit content within a layout Active .