Add image component for editor (#57)

* Add image component

* More image editor

* add more image changes
This commit is contained in:
KM Koushik
2024-08-23 20:59:20 +10:00
committed by GitHub
parent 1a3364ed82
commit 1824a88a16
13 changed files with 874 additions and 265 deletions

View File

@@ -655,6 +655,9 @@ export class EmailRenderer {
height = "auto",
alignment = "center",
externalLink = "",
borderRadius,
borderColor,
borderWidth,
} = attrs || {};
const { next } = options || {};
@@ -669,8 +672,11 @@ export class EmailRenderer {
width,
maxWidth: "100%",
outline: "none",
border: "none",
textDecoration: "none",
borderStyle: "solid",
borderRadius: `${borderRadius}px`,
borderColor,
borderWidth: `${borderWidth}px`,
}}
title={title || alt || "Image"}
/>