Closed (fixed)
Project:
UI Patterns (SDC in Drupal UI)
Version:
2.0.21
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2026 at 13:05 UTC
Updated:
24 Sep 2026 at 15:30 UTC
Jump to comment: Most recent
Comments
Comment #3
just_like_good_vibeshello and thank you for reporting
Comment #4
just_like_good_vibesI agree with you, the div wrapper is not needed. It came from old code, where it served to detect an empty render; that check is gone, and nothing on the front end depends on the class. The editing view keeps its own div, CKEditor needs a container for the widget.
I rebased the issue fork's branch on 2.0.x and updated the kernel test: the component root now has to follow the text directly.
Removing the div does not give inline components, though. The widget is a block object, so the editor only places it between paragraphs and splits any paragraph it is pasted into. Real inline embedding needs an inline widget, a span-based preview, and a way to know which components render inline markup, since a div inside a paragraph breaks the paragraph. That would be a follow-up issue.
Comment #6
just_like_good_vibes