chore: super image insertion improvements
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -44,7 +44,7 @@ export default function RemoteImagePlugin() {
|
||||
$wrapNodeInElement(imageNode, $createParagraphNode).selectEnd()
|
||||
}
|
||||
const newLineNode = $createParagraphNode()
|
||||
$insertNodes([newLineNode])
|
||||
imageNode.getParentOrThrow().insertAfter(newLineNode)
|
||||
|
||||
return true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user