Difference between revisions of "User:King of Herdaz/Toolbar customization"

m
 
== Buttons ==
Buttons are the simplest type of element that you can add to your toolbar. Buttons appear in the toolbar as icons that will perform one [[#Actions|action]] when it is clicked. Examples of buttons in the default toolbar configuration include the Bold button and the Italics button.
 
=== Premade Buttons ===
Simply paste any of these premade buttons into your <code>/common.js</code> page between the two [[#Basic]] sections to add it to the left side of the <code>main</code> section of your toolbar (which is the top row that is always showing).
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'formatinsert',
tools: {
"link": {
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'formatinsert',
tools: {
"hidden": {
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'formatinsert',
tools: {
"columns": {
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'formatinsert',
tools: {
"code": {
Autopatrolled, Editors
8,718

edits