Fixes + Version bump
Some checks failed
Create Release on Tag Push / build (push) Has been cancelled

This commit is contained in:
MassiveBox 2025-04-17 22:27:38 +02:00
parent e815442881
commit 3a05d36f8c
Signed by: massivebox
GPG key ID: 9B74D3A59181947D
6 changed files with 32 additions and 19 deletions

View file

@ -7,7 +7,7 @@ import {
imgSrcToIDs, generateTimeString, generateRandomString
} from "@/helper";
import {migrate} from "@/migration";
import {EditorManager, PluginEditor} from "@/editor";
import {EditorManager} from "@/editor";
import {PluginConfig, PluginConfigViewer} from "@/config";
import {Analytics} from "@/analytics";
@ -34,7 +34,7 @@ export default class DrawJSPlugin extends Plugin {
const fileID = generateRandomString();
const syncID = generateTimeString() + '-' + generateRandomString();
protyle.insert(getMarkdownBlock(fileID, syncID), true, false);
new EditorManager(new PluginEditor(fileID, this.config.getDefaultEditorOptions())).open(this);
new EditorManager(fileID, this.config.getDefaultEditorOptions()).open(this);
}
}];
@ -46,7 +46,7 @@ export default class DrawJSPlugin extends Plugin {
label: "Edit with js-draw",
click: () => {
void this.analytics.sendEvent('edit');
new EditorManager(new PluginEditor(ids.fileID, this.config.getDefaultEditorOptions())).open(this)
new EditorManager(ids.fileID, this.config.getDefaultEditorOptions()).open(this);
}
})
})