Apply existing formatting to pasted content, preserve whitespace
This commit is contained in:
parent
f597f15faf
commit
e3ffc70389
9 changed files with 191 additions and 53 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue