mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Apply existing formatting to pasted content, preserve whitespace
This commit is contained in:
@@ -213,7 +213,7 @@ export function CompositionInput(props: Props): React.ReactElement {
|
||||
}, []);
|
||||
const nodes = collapseRangeTree({ tree, text });
|
||||
const opsWithFormattingAndMentions = insertFormattingAndMentionsOps(nodes);
|
||||
const opsWithEmojis = insertEmojiOps(opsWithFormattingAndMentions);
|
||||
const opsWithEmojis = insertEmojiOps(opsWithFormattingAndMentions, {});
|
||||
|
||||
return new Delta(opsWithEmojis);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user