diff --git a/apps/server/src/ee b/apps/server/src/ee index 028e3172..71b4323d 160000 --- a/apps/server/src/ee +++ b/apps/server/src/ee @@ -1 +1 @@ -Subproject commit 028e31724e023d230426191eb6d6ef22af350a22 +Subproject commit 71b4323d1b6ea3fbec061b0d31be33235d4ddbcd diff --git a/packages/editor-ext/src/lib/drawio.ts b/packages/editor-ext/src/lib/drawio.ts index 298a1648..bd42b0e4 100644 --- a/packages/editor-ext/src/lib/drawio.ts +++ b/packages/editor-ext/src/lib/drawio.ts @@ -262,6 +262,15 @@ export const Drawio = Node.create({ el.src = updatedNode.attrs.src || ""; } + const w = updatedNode.attrs.width; + const h = updatedNode.attrs.height; + if (w != null) { + el.style.width = `${w}px`; + } + if (h != null) { + el.style.height = `${h}px`; + } + const align = updatedNode.attrs.align || "center"; const container = nodeView.dom as HTMLElement; applyAlignment(container, align); diff --git a/packages/editor-ext/src/lib/excalidraw.ts b/packages/editor-ext/src/lib/excalidraw.ts index 9f498dbb..f132d37a 100644 --- a/packages/editor-ext/src/lib/excalidraw.ts +++ b/packages/editor-ext/src/lib/excalidraw.ts @@ -262,6 +262,15 @@ export const Excalidraw = Node.create({ el.src = updatedNode.attrs.src || ""; } + const w = updatedNode.attrs.width; + const h = updatedNode.attrs.height; + if (w != null) { + el.style.width = `${w}px`; + } + if (h != null) { + el.style.height = `${h}px`; + } + const align = updatedNode.attrs.align || "center"; const container = nodeView.dom as HTMLElement; applyAlignment(container, align); diff --git a/packages/editor-ext/src/lib/image/image.ts b/packages/editor-ext/src/lib/image/image.ts index 3876068c..8798a9bb 100644 --- a/packages/editor-ext/src/lib/image/image.ts +++ b/packages/editor-ext/src/lib/image/image.ts @@ -294,6 +294,15 @@ export const TiptapImage = Image.extend({ el.alt = updatedNode.attrs.alt || ""; } + const w = updatedNode.attrs.width; + const h = updatedNode.attrs.height; + if (w != null) { + el.style.width = `${w}px`; + } + if (h != null) { + el.style.height = `${h}px`; + } + // Update alignment on container const align = updatedNode.attrs.align || "center"; const container = nodeView.dom as HTMLElement;