Skip to content

Commit

Permalink
chore: fix newline insertion when embedding files in super
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Aug 8, 2023
1 parent 2484c21 commit 1da4b5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 1da4b5e

Please sign in to comment.