|
To access pinEdit toolbar from outside you have to add the following function to config_toolbar.js (will be part of versions > 4.01.1017)
function editGetToolbarObject(mode) { if(mode == "TOP") return toolbarsTop; if(mode == "BOTTOM") return toolbarsBottom; }
On the page where pinEdit is added you can i.e. hide/show pinEdit (top) toolbar with this code:
function hideToolbar() { var toolbarsTop = editor.editGetToolbarObject("TOP"); toolbarsTop.hide(); editor.editSetToolbarHeight("TOP", 0); }
function showToolbar() { var toolbarsTop = editor.editGetToolbarObject("TOP"); toolbarsTop.show(); editor.editSetToolbarHeight("TOP", 84); }
|