Skip to content

Commit

Permalink
feat: keyboard shortcut for adding links
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimio committed Oct 2, 2024
1 parent 7a13674 commit aa8ef88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/editor/extensions/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function getCurrentWordBounds(editor: Editor): Range {
);

const wordBefore = textBefore
.replaceAll(/\uFFFC/, '')
.replaceAll(/\uFFFC/g, '')
.split(/\b/)
.pop();
const wordAfter = textAfter
.replaceAll(/\uFFFC/, '')
.replaceAll(/\uFFFC/g, '')
.split(/\b/)
.shift();

Expand Down

0 comments on commit aa8ef88

Please sign in to comment.