Update lexical, remove unused code

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-02-11 13:06:30 +01:00
parent 6210ad3c25
commit 8e3c6e8310
5 changed files with 132 additions and 193 deletions

View File

@@ -324,7 +324,7 @@ const AutosuggestPlugin = ({
dispatch(chooseEmoji(suggestion));
replaceMatch($createEmojiNode(suggestion));
} else if (suggestion[0] === '#') {
node.setTextContent(`${suggestion} `);
(node as TextNode).setTextContent(`${suggestion} `);
node.select();
} else {
const account = selectAccount(getState(), suggestion)!;