diff --git a/packages/web/editor.tsx b/packages/web/editor.tsx index 93c46c67..1b5039a2 100644 --- a/packages/web/editor.tsx +++ b/packages/web/editor.tsx @@ -194,8 +194,6 @@ export class Editor { let globalModules: any = await (await fetch("/global.plug.json")).json(); - console.log("Global modules", globalModules); - this.system.on({ plugLoaded: (plug) => { safeRun(async () => { @@ -224,11 +222,10 @@ export class Editor { }, }); - await this.reloadPlugs(); - if (this.pageNavigator.getCurrentPage() === "") { await this.pageNavigator.navigate("start"); } + await this.reloadPlugs(); } async save(immediate: boolean = false): Promise { @@ -474,7 +471,9 @@ export class Editor { rebuildEditorState() { const editorView = this.editorView; + console.log("Rebuilding editor state"); if (editorView && this.currentPage) { + console.log("Getting all syntax extensions"); this.mdExtensions = loadMarkdownExtensions(this.system); // And reload the syscalls to use the new syntax extensions diff --git a/packages/web/editor_paste.ts b/packages/web/editor_paste.ts index 86942784..8a544075 100644 --- a/packages/web/editor_paste.ts +++ b/packages/web/editor_paste.ts @@ -21,7 +21,6 @@ export const pasteLinkExtension = ViewPlugin.fromClass( let pastedString = pastedText.join(""); if (pastedString.match(urlRegexp)) { let selection = update.startState.selection.main; - console.log("It's a URL and selection empty?", selection.empty); if (!selection.empty) { setTimeout(() => { update.view.dispatch({