diff --git a/src/components/article-creator/caption-rich-text/CaptionRichTextEditor.tsx b/src/components/article-creator/caption-rich-text/CaptionRichTextEditor.tsx index ee38eeec..b1c56913 100644 --- a/src/components/article-creator/caption-rich-text/CaptionRichTextEditor.tsx +++ b/src/components/article-creator/caption-rich-text/CaptionRichTextEditor.tsx @@ -292,6 +292,7 @@ export function CaptionRichTextEditor({ const handlePaste = useCallback( (e: React.ClipboardEvent) => { e.preventDefault(); + e.stopPropagation(); const html = e.clipboardData.getData("text/html"); const text = e.clipboardData.getData("text/plain"); const source = html || text; @@ -366,6 +367,7 @@ export function CaptionRichTextEditor({ style={toolbarStyle} role="toolbar" aria-label="Caption formatting" + onMouseDown={(e) => e.preventDefault()} > { + const target = e.target as HTMLElement; + if (target.tagName !== "INPUT") e.preventDefault(); + }} >