A fix to toolbar plugin, and updates on oerpub editor page

In the toolbar, I belive squireledEditable was declared in the wrong scope. Also added a bit of JS code to the saving procedure in the oerpub editor page, which is reused as tal template in our editor product.