You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-05 22:57:29 +02:00
Mobile: Add a Rich Text Editor (#12748)
This commit is contained in:
@@ -94,6 +94,13 @@ document.addEventListener('click', (event) => {
|
||||
const anchor = webviewLib.getParentAnchorElement(event.target);
|
||||
if (!anchor) return;
|
||||
|
||||
// If contained within a content-editable region, don't follow the link.
|
||||
// Usually, the user wants to move the cursor into the link on click.
|
||||
if (anchor.closest('div[contenteditable]')) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
// Prevent URLs added via <a> tags from being opened within the application itself
|
||||
// otherwise it would open the whole website within the WebView.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user