Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

📋 fix(handlePaste): Remove Custom rich-text handling (#3025)

Danny Avila803fd6312151
diff --git a/client/src/hooks/Input/useTextarea.ts b/client/src/hooks/Input/useTextarea.ts
index 3b6c8b9cdd..569766784c 100644
--- a/client/src/hooks/Input/useTextarea.ts
+++ b/client/src/hooks/Input/useTextarea.ts
@@ -209,21 +209,6 @@ export default function useTextarea({
return;
}
- let richText = '';
- let includedText = '';
- const { types } = e.clipboardData;
-
- if (types.indexOf('text/rtf') !== -1 || types.indexOf('Files') !== -1) {
- e.preventDefault();
- includedText = e.clipboardData.getData('text/plain');
- richText = e.clipboardData.getData('text/rtf');
- }
-
- if (includedText && (e.clipboardData.files.length > 0 || richText)) {
- insertTextAtCursor(textAreaRef.current, includedText);
- forceResize(textAreaRef);
- }
-
if (e.clipboardData.files.length > 0) {
setFilesLoading(true);
const timestampedFiles: File[] = [];