@flozy/editor 11.1.4 → 11.1.5
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/dist/Editor/utils/helper.js +10 -6
- package/package.json +1 -1
@@ -1059,12 +1059,16 @@ export const getSelectedElementColor = (editor, format, theme) => {
|
|
1059
1059
|
};
|
1060
1060
|
export const GetsectionBgImage = sectionBackgroundImage => {
|
1061
1061
|
if (sectionBackgroundImage && sectionBackgroundImage !== "none") {
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1062
|
+
if (typeof sectionBackgroundImage === "object") {
|
1063
|
+
return {
|
1064
|
+
backgroundImage: `url(${sectionBackgroundImage?.embedURL})`
|
1065
|
+
};
|
1066
|
+
} else if (typeof sectionBackgroundImage === "string") {
|
1067
|
+
return {
|
1068
|
+
backgroundImage: `url(${sectionBackgroundImage})`
|
1069
|
+
};
|
1070
|
+
}
|
1065
1071
|
} else {
|
1066
|
-
return {
|
1067
|
-
backgroundImage: "none"
|
1068
|
-
};
|
1072
|
+
return {};
|
1069
1073
|
}
|
1070
1074
|
};
|