@seafile/sdoc-editor 1.0.172-alpha-4 → 1.0.172-alpha-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.
|
@@ -210,10 +210,11 @@ const FileLinkInsertDialog = _ref => {
|
|
|
210
210
|
e.stopPropagation();
|
|
211
211
|
(0, _helpers.removeTempInput)(editor, element);
|
|
212
212
|
const eventBus = _eventBus.default.getInstance();
|
|
213
|
-
const createName = newFileName.trim();
|
|
213
|
+
const createName = newFileName.trim() || t('Create_a_new_file');
|
|
214
214
|
const external_props = {
|
|
215
215
|
insertSdocFileLink: _helpers.insertSdocFileLink,
|
|
216
|
-
editor
|
|
216
|
+
editor,
|
|
217
|
+
noShowDialog: true
|
|
217
218
|
};
|
|
218
219
|
console.log(1, createName, external_props);
|
|
219
220
|
// debugger;
|
|
@@ -223,8 +224,7 @@ const FileLinkInsertDialog = _ref => {
|
|
|
223
224
|
});
|
|
224
225
|
}, [editor, element, newFileName]);
|
|
225
226
|
const createFileTipDefault = (0, _react.useMemo)(() => {
|
|
226
|
-
|
|
227
|
-
return 'Create_a_new_sdoc_file';
|
|
227
|
+
return 'Create_a_new_file';
|
|
228
228
|
}, []);
|
|
229
229
|
const createFileName = (0, _react.useMemo)(() => {
|
|
230
230
|
return `${newFileName}.sdoc`;
|