Commit 3ecb10f
committed
fix(track-changes): merge textStyle attrs in format change snapshot
upsertMarkSnapshotByType replaced the entire mark snapshot when a second
property of the same mark type changed (e.g. color then fontFamily on
textStyle). This lost earlier tracked changes, so rejecting a multi-property
format suggestion only reverted the last property instead of all of them.
Merge attrs for marks of the same type instead of replacing the snapshot.1 parent 33ea1e4 commit 3ecb10f
File tree
1 file changed
+9
-2
lines changed- packages/super-editor/src/editors/v1/extensions/track-changes/trackChangesHelpers
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
| |||
0 commit comments