Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit

Started by Pintexx Support at 11-07-2005 9:13 . Topic has 0 replies.

Print Search
Sort Posts:    
   11-07-2005, 9:13
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.571
How to access pinEdit toolbar on client side from outside pinEdit ?

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);
}

 


   Report 
Pintexx Forum » Knowledge Base » pinEdit » How to access pinEdit toolbar on client side from outside pinEdit ?