editor: add Shift+Mod+L shortcut for adding internal links

This commit is contained in:
Abdullah Atta
2024-04-01 11:38:59 +05:00
parent 310de9f950
commit c26e2d800d

View File

@@ -50,6 +50,10 @@ export const KeyMap = Extension.create({
.unsetMark("link")
.run();
return true;
},
"Shift-Mod-L": ({ editor }) => {
editor.storage.createInternalLink?.();
return true;
}
};
}