Add feature to automatically attach quote on eligible link past in Web UI composer (#36364)
This commit is contained in:
parent
68a36d5a57
commit
cda07686df
3 changed files with 56 additions and 6 deletions
|
|
@ -150,10 +150,7 @@ const AutosuggestTextarea = forwardRef(({
|
|||
}, [suggestions, onSuggestionSelected, textareaRef]);
|
||||
|
||||
const handlePaste = useCallback((e) => {
|
||||
if (e.clipboardData && e.clipboardData.files.length === 1) {
|
||||
onPaste(e.clipboardData.files);
|
||||
e.preventDefault();
|
||||
}
|
||||
onPaste(e);
|
||||
}, [onPaste]);
|
||||
|
||||
// Show the suggestions again whenever they change and the textarea is focused
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue