@flozy/editor 5.4.9 → 5.5.0
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.
@@ -307,11 +307,13 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
307
307
|
hideTools: updatedHideTools || []
|
308
308
|
}) : [];
|
309
309
|
const handleEditorChange = newValue => {
|
310
|
-
if (
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
310
|
+
if (!readOnly) {
|
311
|
+
if (JSON.stringify(newValue) !== JSON.stringify(debouncedValue?.current)) {
|
312
|
+
updateTopBanner(newValue, setTopBanner);
|
313
|
+
debounced(newValue);
|
314
|
+
if (!isInteracted) {
|
315
|
+
setIsInteracted(true);
|
316
|
+
}
|
315
317
|
}
|
316
318
|
}
|
317
319
|
};
|
@@ -19,6 +19,7 @@ const FormStyles = theme => ({
|
|
19
19
|
"& .editorWorkflow": {
|
20
20
|
minHeight: '130px',
|
21
21
|
padding: '12px',
|
22
|
+
paddingBottom: 0,
|
22
23
|
'&:focus-visible': {
|
23
24
|
outline: 'none',
|
24
25
|
border: 'none'
|
@@ -104,6 +105,7 @@ const FormStyles = theme => ({
|
|
104
105
|
padding: "4px 22px",
|
105
106
|
textTransform: "none",
|
106
107
|
border: "1px solid #D8DDE1",
|
108
|
+
minWidth: '126px',
|
107
109
|
"& svg": {
|
108
110
|
"& path": {
|
109
111
|
stroke: "#64748B"
|
@@ -158,7 +158,12 @@ const MiniEditor = props => {
|
|
158
158
|
className: className || "mini-editor-cls",
|
159
159
|
renderElement: renderElement,
|
160
160
|
renderLeaf: renderLeaf,
|
161
|
-
onKeyDown: onKeyDown
|
161
|
+
onKeyDown: onKeyDown,
|
162
|
+
style: {
|
163
|
+
height: '200px',
|
164
|
+
overflow: 'auto',
|
165
|
+
marginBottom: '12px'
|
166
|
+
}
|
162
167
|
})]
|
163
168
|
})
|
164
169
|
});
|