Non-uniform behaviour of Text formatting shortcuts #11544
Labels
[Feature] Rich Text
Related to the Rich Text component that allows developers to render a contenteditable
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Enhancement
A suggestion for improvement.
Describe the bug
Monospaced and strikethrough shortcuts behave differently than bold or italics. Ideally all text formatting shortcuts shall behave in the same manner. Monospace and strikethrough instead require the user to type the part that shall be monospaced, stop typing, select the freshly typed text that shall be monospaced, use the shortcut. This breaks the workflow. The same does not hold for bold, italic and underline.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The expected code should be
<strong>some text <code>print('Hello Dolly!');</code></strong>
Currently one gets
<strong>some text print('Hello Dolly!');</strong>
Screenshots
Not applicable
Desktop:
Additional context
The text was updated successfully, but these errors were encountered: