Highlighted formatting in the toolbar doesn't match MCE inline boundaries #11091
Closed
Description
opened on Oct 26, 2018
Describe the bug
There's a minor inconsistency with the formatting toolbar and TinyMCE's inline boundaries (used to highlight formatted text).
When the caret is positioned on the left side of formatted text, within the inline boundary, the toolbar button for the active formatting is correctly shown toggled on:
Pressing the left arrow key once to move the caret outside of the inline boundary, the format is incorrectly still shown toggled on:
Positioning the caret on the right side of formatted text, back within the inline boundary, the toolbar button is incorrectly toggled off:
To Reproduce
Steps to reproduce the behavior:
- Add formatted text (bold/italic/strikethrough/link) to a paragraph block.
- Position the caret on the left of the formatted text within the inline boundary.
- Move the mouse to display the toolbar and observe that formatting is toggled on correctly.
- Press the left arrow key once to move outside of the inline boundary.
- Move the mouse to display the toolbar and observe that formatting is incorrectly toggled on.
- Position the caret on the right of the formatted text within the inline boundary.
- Move the mouse to display the toolbar and observe that formatting is incorrectly toggled off.
Expected behavior
The toggle state of toolbar formats should match the position of the caret.
Additional context
- 4.1
- Noticed while working on Fix link popover keyboard accessibility #10983
Activity