Skip to content

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

editor: add support for pasting nn:// internal urls

Ammar Ahmed358b499d3297
diff --git a/packages/editor/src/index.ts b/packages/editor/src/index.ts
index b75cf9531..cc8449401 100644
--- a/packages/editor/src/index.ts
+++ b/packages/editor/src/index.ts
@@ -288,7 +288,13 @@ const useTiptap = (
}).configure({
openOnClick: !isMobile,
autolink: false,
- linkOnPaste: true
+ linkOnPaste: true,
+ protocols: [
+ {
+ scheme: "nn",
+ optionalSlashes: true
+ }
+ ]
}),
Table.configure({
resizable: true,