1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-02 11:42:53 +02:00

Change how slate-history handles selection undo (#4717)

* Change how slate-history handles selection undo

* fix test

* fix lint

* cleanup and simplify

* Fix redo by applying undo beforeSelection before applying the redo

* remove unused shouldClear function

* fix lint

* add changeset
This commit is contained in:
Bryan Haakman
2022-10-23 23:02:05 +02:00
committed by GitHub
parent 4e52e5043e
commit d73026eed2
4 changed files with 33 additions and 53 deletions

View File

@@ -44,6 +44,6 @@ export const output = {
],
selection: {
anchor: { path: [0, 0], offset: 5 },
focus: { path: [0, 0], offset: 5 },
focus: { path: [0, 0], offset: 0 },
},
}