Auto-migrate old drawing blocks on startup

This commit is contained in:
MassiveBox 2025-04-05 21:58:19 +02:00
parent 4555ec275f
commit d8cc4f8caf
Signed by: massivebox
GPG key ID: 9B74D3A59181947D
3 changed files with 54 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import {
imgSrcToIDs, generateTimeString, generateRandomString
} from "@/helper";
import {editorTabInit, openEditorTab} from "@/editorTab";
import {migrate} from "@/migration";
export default class DrawJSPlugin extends Plugin {
@ -17,6 +18,7 @@ export default class DrawJSPlugin extends Plugin {
'type': "whiteboard",
init() { editorTabInit(this) }
});
migrate()
this.protyleSlash = [{
id: "insert-drawing",