Commit d18953e
committed
fix(track-changes): allow linked style changes in suggesting mode (SD-2182)
Heading/paragraph style changes were silently blocked in suggesting mode.
tr.setNodeMarkup() produces a ReplaceAroundStep which was being dropped
by the track changes handler. This detects node markup changes (same
structure, different attrs) and allows them through. Also removes the
empty selection guard from toggleLinkedStyle so keyboard shortcuts work.
Note: style changes are applied directly without tracked change marks.
Tracked change decoration for paragraph styles is a follow-up.1 parent 0132d0e commit d18953e
2 files changed
Lines changed: 11 additions & 4 deletions
File tree
- packages/super-editor/src/extensions
- linked-styles
- track-changes/trackChangesHelpers
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | 108 | | |
99 | 109 | | |
| |||
0 commit comments