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

@@ -103,7 +103,7 @@ const ImagePreview: FunctionComponent<Props> = ({
<div className="mx-2">
<input
type="number"
className="w-10 text-center"
className="w-10 text-center bg-default"
defaultValue={imageZoomPercent}
onKeyDown={(event) => {
event.stopPropagation()

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
},