chore: super image insertion improvements

This commit is contained in:
Aman Harwara
2023-08-08 14:29:02 +05:30
parent 1da4b5e8ce
commit 11110547f8
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ export default function RemoteImagePlugin() {
$wrapNodeInElement(imageNode, $createParagraphNode).selectEnd()
}
const newLineNode = $createParagraphNode()
$insertNodes([newLineNode])
imageNode.getParentOrThrow().insertAfter(newLineNode)
return true
},