]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/ui/index.ts
respective book and chapter structure added.
[bookstack] / resources / js / wysiwyg / ui / index.ts
index 8bfdb8965d2ebcf9db50a52b1bad972cf3d86be6..3811f44b9bfae2a17772bcae87a4d3f89e895139 100644 (file)
@@ -32,7 +32,7 @@ export function buildEditorUI(container: HTMLElement, element: HTMLElement, scro
     manager.setContext(context);
 
     // Create primary toolbar
-    manager.setToolbar(getMainEditorFullToolbar());
+    manager.setToolbar(getMainEditorFullToolbar(context));
 
     // Register modals
     for (const key of Object.keys(modals)) {