@flozy/editor 10.0.4 → 10.0.6
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.
@@ -129,7 +129,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
129
129
|
hideTools = [],
|
130
130
|
translationMock
|
131
131
|
} = otherProps || {};
|
132
|
-
const translationFn = translation || translationMock;
|
132
|
+
const translationFn = translation || translationMock || (() => {});
|
133
133
|
const editor = useMemo(() => {
|
134
134
|
if (collaborativeEditor) return collaborativeEditor;
|
135
135
|
const editor = createEditor();
|
@@ -630,7 +630,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
630
630
|
}) : null, /*#__PURE__*/_jsx(PopoverAIInput, {
|
631
631
|
otherProps: otherProps || {},
|
632
632
|
editorWrapper: editorWrapper,
|
633
|
-
translation:
|
633
|
+
translation: translationFn
|
634
634
|
}), footer && (fullScreen || readOnly) && /*#__PURE__*/_jsx(Typography, {
|
635
635
|
sx: {
|
636
636
|
color: "rgb(100, 116, 139)",
|
@@ -653,13 +653,13 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
653
653
|
}) : null, !readOnly && showViewport ? /*#__PURE__*/_jsx(SwitchViewport, {
|
654
654
|
breakpoint: breakpoint,
|
655
655
|
onChange: b => onSwitchBreakpoint(b),
|
656
|
-
translation:
|
656
|
+
translation: translationFn
|
657
657
|
}) : null]
|
658
658
|
})
|
659
659
|
}), htmlAction.showInput && /*#__PURE__*/_jsx(CodeToText, {
|
660
660
|
...htmlAction,
|
661
661
|
handleCodeToText: handleCodeToText,
|
662
|
-
translation:
|
662
|
+
translation: translationFn
|
663
663
|
})]
|
664
664
|
}, id), /*#__PURE__*/_jsx(FontLoader, {
|
665
665
|
otherProps: {
|
@@ -676,7 +676,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
676
676
|
onConfirm: () => {
|
677
677
|
handleDeleteAll();
|
678
678
|
},
|
679
|
-
translation:
|
679
|
+
translation: translationFn
|
680
680
|
})]
|
681
681
|
});
|
682
682
|
});
|