Auto-migrate old drawing blocks on startup
This commit is contained in:
parent
4555ec275f
commit
d8cc4f8caf
3 changed files with 54 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue