mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
4193cdd0e5
commit
d9813b016f
3 changed files with 27 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ export const openBacklink = (protyle: IProtyle) => {
|
|||
const newWnd = protyle.model.parent.parent.split("lr");
|
||||
const tab = new Tab({
|
||||
icon: "iconLink",
|
||||
title: protyle.title.editElement.textContent,
|
||||
title: protyle.title.editElement.textContent || "Untitled",
|
||||
callback(tab: Tab) {
|
||||
tab.addModel(new Backlink({
|
||||
type: "local",
|
||||
|
|
@ -45,7 +45,7 @@ export const openGraph = (protyle: IProtyle) => {
|
|||
const wnd = protyle.model.parent.parent.split("lr");
|
||||
const tab = new Tab({
|
||||
icon: "iconGraph",
|
||||
title: protyle.title.editElement.textContent,
|
||||
title: protyle.title.editElement.textContent || "Untitled",
|
||||
callback(tab: Tab) {
|
||||
tab.addModel(new Graph({
|
||||
type: "local",
|
||||
|
|
@ -71,7 +71,7 @@ export const openOutline = (protyle: IProtyle) => {
|
|||
const newWnd = protyle.model.parent.parent.split("lr");
|
||||
const tab = new Tab({
|
||||
icon: "iconAlignCenter",
|
||||
title: protyle.title.editElement.textContent,
|
||||
title: protyle.title.editElement.textContent || "Untitled",
|
||||
callback(tab: Tab) {
|
||||
tab.addModel(new Outline({
|
||||
type: "local",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue