mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-09 20:09:36 +02:00
editor: fix note links not detected on paste/edit
This commit is contained in:
committed by
Abdullah Atta
parent
033666795c
commit
aca36b60b7
@@ -28,7 +28,7 @@ import {
|
||||
PasteRuleMatch
|
||||
} from "@tiptap/core";
|
||||
import { Plugin, TextSelection } from "@tiptap/pm/state";
|
||||
import { find, registerCustomProtocol, reset } from "linkifyjs";
|
||||
import { find, registerCustomProtocol } from "linkifyjs";
|
||||
import { autolink } from "./helpers/autolink.js";
|
||||
import { clickHandler } from "./helpers/clickHandler.js";
|
||||
import { pasteHandler } from "./helpers/pasteHandler.js";
|
||||
@@ -114,10 +114,6 @@ export const Link = Mark.create<LinkOptions>({
|
||||
});
|
||||
},
|
||||
|
||||
onDestroy() {
|
||||
reset();
|
||||
},
|
||||
|
||||
inclusive() {
|
||||
return this.options.autolink;
|
||||
},
|
||||
|
||||
@@ -291,8 +291,7 @@ const useTiptap = (
|
||||
linkOnPaste: true,
|
||||
protocols: [
|
||||
{
|
||||
scheme: "nn",
|
||||
optionalSlashes: true
|
||||
scheme: "nn"
|
||||
}
|
||||
]
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user