You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue where (non-breaking spaces) are automatically inserted after custom container elements (ContainerElement). This occurs specifically when using inline widgets.
I followed the official CKEditor 5 inline widget example to create a custom inline widget. The widget works well, but I noticed that after typing a space following the container element, a is inserted automatically.
Is there a way to prevent CKEditor from inserting after container elements, particularly in this scenario with inline widgets? I would appreciate any guidance or potential workarounds for this behavior.
The text was updated successfully, but these errors were encountered:
I do not know what element you use for your widget, but it is most probably an element not registered as an inline object in the DomConverter.
For common inline elements that should be treated as an inline object (display inline-block) you could specify more attributes of the element to be recognized as an inline object. For example <span class="placeholder"> could be an inline object but plain <span> would not.
Here is an example from not yet released bookmark feature:
I have encountered an issue where
(non-breaking spaces) are automatically inserted after custom container elements (ContainerElement). This occurs specifically when using inline widgets.I followed the official CKEditor 5 inline widget example to create a custom inline widget. The widget works well, but I noticed that after typing a space following the container element, a
is inserted automatically.Is there a way to prevent CKEditor from inserting
after container elements, particularly in this scenario with inline widgets? I would appreciate any guidance or potential workarounds for this behavior.The text was updated successfully, but these errors were encountered: