mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
6d2ff690b2
commit
0d5d63f22a
5 changed files with 14 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ import {needSubscribe} from "../../util/needSubscribe";
|
|||
import {MenuItem} from "../../menus/Menu";
|
||||
import {hasClosestByAttribute, hasClosestByClassName} from "../../protyle/util/hasClosest";
|
||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||
import {replaceFileName} from "../../editor/rename";
|
||||
|
||||
export class Inbox extends Model {
|
||||
private element: Element;
|
||||
|
|
@ -254,7 +255,7 @@ ${(Lute.New()).MarkdownStr("", data.shorthandContent)}
|
|||
fetchPost("/api/filetree/createDoc", {
|
||||
notebook: notebookId,
|
||||
path: `/${Lute.NewNodeID()}.sy`,
|
||||
title: this.data[item].shorthandTitle,
|
||||
title: replaceFileName(this.data[item].shorthandTitle),
|
||||
md: this.data[item].shorthandContent,
|
||||
}, () => {
|
||||
this.remove(item);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue