-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: find link href based on prosemirror node
* Resolve the position given to the `handleClick` function. * Get the `link` mark from the resolved position. * Use the attrs of this mark. `editor.getAttributes` gets the attributes at the current selection. In Firefox the selection will not move to the clicked position in read only mode. So instead of relying on the selection we now use the `pos` of the click. Signed-off-by: Max <[email protected]>
- Loading branch information
1 parent
8725c5e
commit aac0b5f
Showing
3 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters