diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsx index 251a45b2e..658175529 100644 --- a/apps/web/src/components/editor/tiptap.tsx +++ b/apps/web/src/components/editor/tiptap.tsx @@ -154,6 +154,10 @@ function TipTap(props: TipTapProps) { const tiptapOptions = useMemo>(() => { return { editorProps: { + handleKeyDown(view, event) { + if ((event.ctrlKey || event.metaKey) && event.key === "s") + event.preventDefault(); + }, handlePaste: (view, event) => { const hasText = event.clipboardData?.types?.some((type) => type.startsWith("text/")