Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion features/markdown-paste/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ export function MarkdownPastePlugin() {
const transformers = editorConfig?.features?.markdownTransformers;
if (!transformers?.length) return;

return editor.registerCommand<ClipboardEvent>(
return editor.registerCommand(
PASTE_COMMAND,
(event) => {
// PASTE_COMMAND can also carry input/keyboard events with no clipboard.
if (!(event instanceof ClipboardEvent)) return false;
const clipboard = event.clipboardData;
if (!clipboard) return false;

Expand Down
2 changes: 1 addition & 1 deletion lib/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const useRedirect = () => {
return (url: string, target?: string) => {
window.open(url, target);
window.open(url, target, "noopener,noreferrer");
};
};
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,36 @@
"lint:fix": "eslint --fix"
},
"dependencies": {
"@lexical/clipboard": "0.35.0",
"@lexical/html": "0.35.0",
"@lexical/markdown": "0.35.0",
"@lexical/react": "0.35.0",
"@payloadcms/db-vercel-postgres": "^3.75.0",
"@payloadcms/email-resend": "^3.85.1",
"@payloadcms/next": "^3.75.0",
"@payloadcms/richtext-lexical": "^3.75.0",
"@payloadcms/storage-vercel-blob": "3.75.0",
"@payloadcms/ui": "^3.75.0",
"@lexical/clipboard": "0.50.0",
"@lexical/html": "0.50.0",
"@lexical/markdown": "0.50.0",
"@lexical/react": "0.50.0",
"@payloadcms/db-vercel-postgres": "^3.94.2",
"@payloadcms/email-resend": "^3.94.2",
"@payloadcms/next": "^3.94.2",
"@payloadcms/richtext-lexical": "^3.94.2",
"@payloadcms/storage-vercel-blob": "3.94.2",
"@payloadcms/ui": "^3.94.2",
"@vercel/analytics": "^1.4.0",
"@vercel/speed-insights": "^1.3.1",
"clsx": "^2.1.1",
"framer-motion": "^12.40.0",
"graphql": "^16.12.0",
"highlight.js": "^11.10.0",
"lexical": "0.35.0",
"lexical": "0.50.0",
"lucide-react": "^0.563.0",
"next": "^16.0.0",
"payload": "^3.75.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "^16.4.5",
"payload": "^3.94.2",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"sharp": "^0.34.5",
"tailwind-merge": "^2.6.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.19",
"@types/node": "^22.10.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/react": "^19.3.3",
"@types/react-dom": "^19.3.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.17",
Expand Down
Loading