@flozy/editor 7.0.0 → 7.0.2
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.
@@ -91,7 +91,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
91
91
|
otherProps,
|
92
92
|
isIframe,
|
93
93
|
theme,
|
94
|
-
showViewport = false
|
94
|
+
showViewport = false,
|
95
|
+
overrideWrapperStyles = {}
|
95
96
|
} = props;
|
96
97
|
const editorWrapper = useRef();
|
97
98
|
const mentionsRef = useRef();
|
@@ -152,7 +153,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
152
153
|
const classes = editorStyles({
|
153
154
|
padHeight: !fullScreen ? otherProps?.padHeight : 20,
|
154
155
|
placeHolderColor: invertColor(pageColor || "#FFF"),
|
155
|
-
theme
|
156
|
+
theme,
|
157
|
+
overrideWrapperStyles
|
156
158
|
});
|
157
159
|
const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
|
158
160
|
useEffect(() => {
|
@@ -1,7 +1,8 @@
|
|
1
1
|
const editorStyles = ({
|
2
2
|
padHeight,
|
3
3
|
placeHolderColor,
|
4
|
-
theme
|
4
|
+
theme,
|
5
|
+
overrideWrapperStyles = {}
|
5
6
|
}) => ({
|
6
7
|
root: {
|
7
8
|
display: "flex",
|
@@ -56,7 +57,8 @@ const editorStyles = ({
|
|
56
57
|
backgroundColor: "#FFF",
|
57
58
|
zIndex: 10
|
58
59
|
}
|
59
|
-
}
|
60
|
+
},
|
61
|
+
...overrideWrapperStyles
|
60
62
|
},
|
61
63
|
slateWrapper: {
|
62
64
|
paddingTop: "0px",
|