@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.
@@ -20,6 +20,7 @@ const FormStyles = theme => ({
20
20
  minHeight: "130px",
21
21
  padding: "12px",
22
22
  paddingBottom: 0,
23
+ color: theme?.palette?.editor?.textColor,
23
24
  "&:focus-visible": {
24
25
  outline: "none",
25
26
  border: "none"
@@ -15,7 +15,7 @@ const editorStyles = ({
15
15
  boxSizing: "border-box"
16
16
  },
17
17
  "& .blockQuoteComp": {
18
- backgroundColor: `${theme?.palette?.editor?.colorBoxBg} !important`
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(${base64})` : "none"
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 || "none",
486
- padding: `${element?.bgColor ? "16px" : "0px"} 8px`,
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%",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "11.1.9",
3
+ "version": "11.2.1",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"