Remove Standard buttons in Toolbar
February 07 2008
- 4 replies.
- This question is resolved, if you still have a question, you can re-open it by reacting to it.
- This question was started by Castro.
- Last post by Robbert.
user 07 February,
10:36 | Hello, I would like to remove some standard buttons in the toolbar which are not useful for some users like the Xopus Menu, Flash, refresh or print button, how and where is it possible ? Is it possible to do it in a specific file or is it the deprecated.js file ? thank you. |
Xopus Team 07 February,
11:13 | For that you can use: var groupId = 1 var buttonId = 1 var group = toolbarDefinition.getGroup(groupId) toolbarDefinition.removeButton(group, buttonId) Just fiddle a bit with the ID's to remove the buttons you would like to remove, that's it! |
user 11 February,
13:58 | So this must be defined in the "deprecated.js" file, right ? Is there anyway to specify a specific file ? The purpose is that I have some users that want to see only the required buttons , so I need to hide them for some users in a business line but not for others users. |
user 11 February,
17:57 | I found out how to remove a button fopr example for the flash button:
var insertGroup = toolbarDefinition.getGroup('insert'); toolbarDefinition.removeButton(insertGroup,'insertflash'); But if I want to remove the "Xopus Menu" apprently, I must use the logoMenuDefinition Object, but I cannot find any documentation on that , is it possible to remove it ?, or at least to leave only the "About Xopus" selection ? |
Xopus Team 14 March,
12:42 | Altering the Xopus Menu is purposely not part of the API, because these menus are 'live'. When one opens a new document, with different document views for example, the menu will be updated to reflect these changes. Removing the menu would currently cause the loading files to stop due to JavaScript errors. |
- support /
- forum /
- How To ... /
- Remove Standard buttons in Toolbar
React
Write a comment