Add document title in topbar and allow params with user extensions (#720)

* use document title to display the current file
* add document title in top bar
This commit is contained in:
JFH
2022-01-31 23:36:57 +01:00
committed by GitHub
parent 5d1ba0205b
commit db8522fcb7
12 changed files with 654 additions and 507 deletions

View File

@@ -351,6 +351,7 @@ export default class ConfigObj {
const cached = this.editor.storage.getItem(name)
if (cached) {
this.editor.loadFromString(cached)
this.editor.topPanel.updateTitle(this.editor.storage.getItem(`title-${name}`) ?? 'untitled.svg')
}
}