@flozy/editor 9.3.4 → 9.3.5
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.
@@ -152,13 +152,14 @@ const ChatEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
152
152
|
// needLayout = true,
|
153
153
|
} = otherProps || {};
|
154
154
|
const mentionsRef = useRef();
|
155
|
+
const dummyTranslation = () => {};
|
155
156
|
const customProps = {
|
156
157
|
...(otherProps || {}),
|
157
158
|
hideTools: ["settings", "add_column", "drag", "resize"],
|
158
159
|
readOnly: isReadOnly,
|
159
160
|
editorPlaceholder: "Write Something",
|
160
161
|
page_id: 1,
|
161
|
-
translation: translation || translationMock
|
162
|
+
translation: translation || translationMock || dummyTranslation
|
162
163
|
};
|
163
164
|
const [mentions, setMentions] = useMentions({
|
164
165
|
editor,
|
@@ -45,12 +45,13 @@ const MiniEditor = props => {
|
|
45
45
|
const {
|
46
46
|
translationMock
|
47
47
|
} = otherProps;
|
48
|
+
const dummyTranslation = () => {};
|
48
49
|
const customProps = {
|
49
50
|
...(otherProps || {}),
|
50
51
|
readOnly: isReadOnly,
|
51
52
|
editorPlaceholder: miniEditorPlaceholder,
|
52
53
|
page_id: id,
|
53
|
-
translation: translation || translationMock
|
54
|
+
translation: translation || translationMock || dummyTranslation
|
54
55
|
};
|
55
56
|
const [mentions, setMentions] = useMentions({
|
56
57
|
editor,
|