Skip to content

Commit

Permalink
chore: super image insertion improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Aug 8, 2023
1 parent 1da4b5e commit 1111054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function RemoteImagePlugin() {
$wrapNodeInElement(imageNode, $createParagraphNode).selectEnd()
}
const newLineNode = $createParagraphNode()
$insertNodes([newLineNode])
imageNode.getParentOrThrow().insertAfter(newLineNode)

return true
},
Expand Down

0 comments on commit 1111054

Please sign in to comment.