Open editor in dialog on mobile
SiYuan Mobile doesn't have tabs, so the editor has to be opened in a dialog. In the future, consider including a setting to open editor in dialog on desktop as well.
This commit is contained in:
parent
e9a9961b61
commit
e165c69664
2 changed files with 30 additions and 18 deletions
|
@ -7,7 +7,7 @@ import {
|
|||
findImgSrc,
|
||||
imgSrcToPath
|
||||
} from "@/helper";
|
||||
import {createEditor, openEditorTab} from "@/editorTab";
|
||||
import {editorTabInit, openEditorTab} from "@/editorTab";
|
||||
import {ASSETS_PATH} from "@/const";
|
||||
|
||||
export default class DrawJSPlugin extends Plugin {
|
||||
|
@ -16,9 +16,7 @@ export default class DrawJSPlugin extends Plugin {
|
|||
loadIcons(this);
|
||||
this.addTab({
|
||||
'type': "whiteboard",
|
||||
init() {
|
||||
createEditor(this);
|
||||
}
|
||||
init() { editorTabInit(this) }
|
||||
});
|
||||
|
||||
this.protyleSlash = [{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue