Commit 6b8c209
committed
Filter out core annotations from active formats in format-boundaries.js
- Updated the logic in the format-boundaries event listener to exclude formats of type 'core/annotation' from both `formatsBefore` and `formatsAfter`. This ensures that editor-only formats do not interfere with user selections during formatting operations.
These changes enhance the accuracy of active format management in the editor.
Refs #716981 parent ecdce70 commit 6b8c209
File tree
1 file changed
+6
-2
lines changed- packages/rich-text/src/component/event-listeners
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments