Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix clicking on link resets editor on mobile

ammarahm-ed881771a14fa2
diff --git a/packages/editor/src/index.ts b/packages/editor/src/index.ts
index 9253b3e41..69876aa6f 100644
--- a/packages/editor/src/index.ts
+++ b/packages/editor/src/index.ts
@@ -156,11 +156,11 @@ const useTiptap = (
OrderedList,
TaskItemNode.configure({ nested: true }),
TaskListNode,
- Link.configure({
+ Link.extend({
+ inclusive: true
+ }).configure({
openOnClick: !isMobile,
autolink: false
- }).extend({
- inclusive: true
}),
Table.configure({
resizable: true,