Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed May 25, 2023
1 parent 8bb32e9 commit 9c84cc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/extension-link/src/helpers/clickHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export function clickHandler(options: ClickHandlerOptions): Plugin {
const target = link?.target ?? attrs.target

if (link && href) {
if (view.editable) window.open(href, target)
if (view.editable) {
window.open(href, target)
}

return true
}
Expand Down

0 comments on commit 9c84cc0

Please sign in to comment.