From 7663328df54d2d206d5f494213d9df8737374767 Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Wed, 4 May 2022 12:54:10 -0400 Subject: [PATCH] fix: treat images as inline --- 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) =>