Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not use window.open for links in readonly mode (#4073)
* fix: do not use window.open for links in readonly mode When `contenteditable` is `true`, the browser doesn't allow direct link opens on clicking the `a` element. This is why we need to call `window.open` to open our links. However, when `contenteditable` is `false`, the default browser mechanism for opening links works and there is no need for using `window.open`. * fix: linting errors
- Loading branch information