From 00cd3ea86f722333653613fc5bde87f259564cfe Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Wed, 4 May 2022 13:54:58 -0400 Subject: [PATCH] fix: treat images as inline (#121) fixes: #53 --- src/rich-text/node-views/image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rich-text/node-views/image.ts b/src/rich-text/node-views/image.ts index 97589c30..0c3d1c27 100644 --- a/src/rich-text/node-views/image.ts +++ b/src/rich-text/node-views/image.ts @@ -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) =>