devel:toolbar
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
devel:toolbar [2016-03-09 06:58] – [Tips] ismirnov | devel:toolbar [2017-01-07 22:41] – [Tips] turnermm | ||
---|---|---|---|
Line 20: | Line 20: | ||
| '' | | '' | ||
| '' | | '' | ||
- | | '' | + | | '' |
+ | | '' | ||
+ | | '' | ||
^ '' | ^ '' | ||
| '' | | '' | ||
Line 41: | Line 43: | ||
==== ...using PHP ==== | ==== ...using PHP ==== | ||
- | To extend the toolbar from your plugin you need to write a [[devel: | + | To extend the toolbar from your plugin you need to write a [[devel: |
Create your button structure according to the above information and add it to the received event data.-function in '' | Create your button structure according to the above information and add it to the received event data.-function in '' | ||
Line 112: | Line 114: | ||
</ | </ | ||
Some notes: | Some notes: | ||
- | * Be aware of the default locations of the images '' | + | * Be aware of the default locations of the images: '' |
* The available options for access keys depends on the [[: | * The available options for access keys depends on the [[: | ||
* More about [[devel: | * More about [[devel: | ||
Line 183: | Line 185: | ||
=== Removing Buttons === | === Removing Buttons === | ||
- | If you want to remove some of the toolbar buttons, you can do so by adding the following code into `/ | + | If you want to remove some of the toolbar buttons, you can do so by adding the following code into '' |
<code javascript / | <code javascript / | ||
Line 190: | Line 192: | ||
" | " | ||
" | " | ||
- | window.toolbar = window.toolbar.filter(function(elem){ return jQuery.inArray(elem.title, | + | window.toolbar = window.toolbar.filter(function(elem){ return jQuery.inArray(elem.title, |
- | }); | + | } |
</ | </ | ||
This is from my personal wiki where I removed almost all the buttons. You can figure out what the title of your button is by running the following snippet in a javascript console: | This is from my personal wiki where I removed almost all the buttons. You can figure out what the title of your button is by running the following snippet in a javascript console: | ||
- | <code javascript> | + | <code javascript> |
Then take the string and append it to the ' | Then take the string and append it to the ' | ||
+ | |||
+ | See also the [[plugin: | ||
devel/toolbar.txt · Last modified: 2023-08-01 20:08 by annda