@flozy/editor 11.1.9 → 11.2.1
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/Elements/Form/Workflow/Styles.js +1 -0
- package/dist/Editor/Styles/EditorStyles.js +1 -1
- package/dist/Editor/common/Shorthands/elements.js +1 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -1
- package/dist/Editor/utils/SlateUtilityFunctions.js +2 -2
- package/package.json +1 -1
@@ -15,7 +15,7 @@ const editorStyles = ({
|
|
15
15
|
boxSizing: "border-box"
|
16
16
|
},
|
17
17
|
"& .blockQuoteComp": {
|
18
|
-
backgroundColor:
|
18
|
+
backgroundColor: theme?.palette?.editor?.colorBoxBg
|
19
19
|
},
|
20
20
|
"&.iframe-editor": {
|
21
21
|
"& .mini-tool-wrpr-ei": {
|
@@ -128,9 +128,7 @@ const ELEMENTS_LIST = [{
|
|
128
128
|
icon: /*#__PURE__*/_jsx(Icon, {
|
129
129
|
icon: "colorbox"
|
130
130
|
}),
|
131
|
-
onInsert: editor => toggleBlock(editor, "blockquote", false
|
132
|
-
bgColor: "rgb(227, 236, 255)"
|
133
|
-
})
|
131
|
+
onInsert: editor => toggleBlock(editor, "blockquote", false)
|
134
132
|
}, {
|
135
133
|
name: "Ordered List",
|
136
134
|
desc: "",
|
@@ -4,6 +4,7 @@ import ImageSelector from "../../ImageSelector/ImageSelector";
|
|
4
4
|
import UploadStyles from "../../ImageSelector/UploadStyles";
|
5
5
|
import Icon from "../../Icon";
|
6
6
|
import { useEditorContext } from "../../../hooks/useMouseMove";
|
7
|
+
import { GetPageBgImage } from "../../../utils/helper";
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
10
|
const BackgroundImage = props => {
|
@@ -15,6 +16,7 @@ const BackgroundImage = props => {
|
|
15
16
|
elementProps,
|
16
17
|
title
|
17
18
|
} = props;
|
19
|
+
const previewImg = GetPageBgImage(value);
|
18
20
|
const {
|
19
21
|
translation
|
20
22
|
} = customProps;
|
@@ -69,7 +71,7 @@ const BackgroundImage = props => {
|
|
69
71
|
item: true,
|
70
72
|
xs: 12,
|
71
73
|
style: {
|
72
|
-
backgroundImage: base64 ? `url(${
|
74
|
+
backgroundImage: base64 ? `url(${previewImg})` : "none"
|
73
75
|
// height: "200px",
|
74
76
|
},
|
75
77
|
|
@@ -482,8 +482,8 @@ export const getBlock = props => {
|
|
482
482
|
style: {
|
483
483
|
// borderColor: element?.color || "transparent",
|
484
484
|
...getBorderColor(element?.color || "transparent", 3),
|
485
|
-
background: element?.bgColor
|
486
|
-
padding:
|
485
|
+
background: element?.bgColor,
|
486
|
+
padding: "16px",
|
487
487
|
borderRadius: `${element?.color ? "0px" : "12px"} 12px 12px ${element?.color ? "0px" : "12px"}`,
|
488
488
|
margin: `${element?.bgColor ? "16px" : "0px"} 0px`,
|
489
489
|
width: element?.bgColor ? "calc(100% - 16px)" : "100%",
|