From 7e783d07e8533b7e27cec02dd2227ddc83d26d47 Mon Sep 17 00:00:00 2001
From: Adrian Lang <lang@cosmocode.de>
Date: Tue, 9 Mar 2010 10:07:09 +0100
Subject: [PATCH] Introduce toolbar buttons for headers and stuff

---
 lib/scripts/toolbar.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/scripts/toolbar.js b/lib/scripts/toolbar.js
index 37987c21a..3f967448c 100644
--- a/lib/scripts/toolbar.js
+++ b/lib/scripts/toolbar.js
@@ -18,6 +18,10 @@ function initToolbar(tbid,edid,tb, allowblock){
     if(!edit) return;
     if(edit.readOnly) return;
 
+    if (typeof allowblock === 'undefined') {
+        allowblock = true;
+    }
+
     //empty the toolbar area:
     toolbar.innerHTML='';
 
-- 
GitLab