chore: fix newline insertion when embedding files in super

This commit is contained in:
Aman Harwara
2023-08-08 14:03:53 +05:30
parent 2484c2147a
commit 1da4b5e8ce

View File

@@ -57,7 +57,7 @@ export default function FilePlugin({ currentNote }: { currentNote: SNNote }): JS
$wrapNodeInElement(fileNode, $createParagraphNode).selectEnd()
}
const newLineNode = $createParagraphNode()
$insertNodes([newLineNode])
fileNode.getParentOrThrow().insertAfter(newLineNode)
return true
},