fix: add new line after embedding files

fix: sync icon direction
This commit is contained in:
Aman Harwara
2022-11-28 15:15:06 +05:30
parent 6fc1bb5e84
commit 7f6c53dfcb
2 changed files with 3 additions and 1 deletions

View File

@@ -26,6 +26,8 @@ export default function FilePlugin(): JSX.Element | null {
if ($isRootOrShadowRoot(fileNode.getParentOrThrow())) {
$wrapNodeInElement(fileNode, $createParagraphNode).selectEnd()
}
const newLineNode = $createParagraphNode()
$insertNodes([newLineNode])
return true
},