Fix link creation with backward selection (#9986)

Fix link creation with backward selection
This commit is contained in:
Florian Duros 2023-01-26 11:08:23 +01:00 committed by GitHub
parent 222f8a919d
commit 406edfc27d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 65 additions and 5 deletions

View file

@ -35,6 +35,7 @@ describe("LinkModal", () => {
anchorNode: null,
focusOffset: 3,
anchorOffset: 4,
isForward: true,
};
const customRender = (isTextEnabled: boolean, onClose: () => void, isEditing = false) => {