Skip to content

Commit

Permalink
fix: treat images as inline
Browse files Browse the repository at this point in the history
  • Loading branch information
dancormier committed May 4, 2022
1 parent b7b44bc commit 7663328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rich-text/node-views/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ImageView implements NodeView {

this.popover = this.createPopover();

this.dom = document.createElement("div");
this.dom = document.createElement("span");
this.dom.appendChild(this.img);
this.dom.appendChild(this.popover);
this.dom.addEventListener("s-popover:hide", (event: Event) =>
Expand Down

0 comments on commit 7663328

Please # to comment.