chore: fix newline insertion when embedding files in super
This commit is contained in:
@@ -57,7 +57,7 @@ export default function FilePlugin({ currentNote }: { currentNote: SNNote }): JS
|
|||||||
$wrapNodeInElement(fileNode, $createParagraphNode).selectEnd()
|
$wrapNodeInElement(fileNode, $createParagraphNode).selectEnd()
|
||||||
}
|
}
|
||||||
const newLineNode = $createParagraphNode()
|
const newLineNode = $createParagraphNode()
|
||||||
$insertNodes([newLineNode])
|
fileNode.getParentOrThrow().insertAfter(newLineNode)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user