Skip to content

Commit

Permalink
fix(links): set preview if whitespace after link selected
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Mar 21, 2024
1 parent 26b8b39 commit fca964c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function previewPossible({ selection }) {
if (hasOtherContent($from.parent)) {
return false
}
const href = extractHref($from.nodeAfter || $from.nodeBefore)
const href = extractHref($from.parent.firstChild)
if (!href || href.startsWith('#')) {
return false
}
Expand Down

0 comments on commit fca964c

Please sign in to comment.