easy-email-pro-theme 1.50.10 → 1.50.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +20 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -15774,6 +15774,26 @@ const TextAlign$1 = () => {
|
|
|
15774
15774
|
setFieldValue(match[1], "attributes.align", align);
|
|
15775
15775
|
return;
|
|
15776
15776
|
}
|
|
15777
|
+
const nodes = Array.from(
|
|
15778
|
+
Editor.nodes(editor, {
|
|
15779
|
+
match: (node2) => {
|
|
15780
|
+
return NodeUtils.isHTMLBlockNodeElement(node2);
|
|
15781
|
+
},
|
|
15782
|
+
mode: "lowest"
|
|
15783
|
+
})
|
|
15784
|
+
);
|
|
15785
|
+
if (nodes.length > 1) {
|
|
15786
|
+
Editor.withoutNormalizing(editor, () => {
|
|
15787
|
+
nodes.forEach((node2) => {
|
|
15788
|
+
Transforms.setNodes(editor, {
|
|
15789
|
+
attributes: __spreadProps(__spreadValues({}, node2[0].attributes), {
|
|
15790
|
+
style: `text-align:${align};`
|
|
15791
|
+
})
|
|
15792
|
+
});
|
|
15793
|
+
});
|
|
15794
|
+
});
|
|
15795
|
+
return;
|
|
15796
|
+
}
|
|
15777
15797
|
Transforms.wrapNodes(
|
|
15778
15798
|
editor,
|
|
15779
15799
|
{
|