From 5e63d3164b58552f81b597eff83cba991bea958e Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 16 Aug 2023 10:46:52 -0700 Subject: A set of composer fixes (#1187) * Don't insert a newline on cmd+entrl (close #1173) * Don't linkify selected text on url-paste (close #1149) * Disable the adult content controls if there is no media on the post (close #1169) --- src/view/com/composer/text-input/TextInput.web.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/view/com/composer/text-input/TextInput.web.tsx') diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index da34a5b9a..152bb50ea 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -60,6 +60,7 @@ export const TextInput = React.forwardRef( Link.configure({ protocols: ['http', 'https'], autolink: true, + linkOnPaste: false, }), Mention.configure({ HTMLAttributes: { @@ -96,6 +97,7 @@ export const TextInput = React.forwardRef( onPressPublish(state) return state }) + return true } }, }, -- cgit 1.4.1