Difference between revisions of "User:Tersia/common.js"
From BDSM Wiki
Line 3: | Line 3: | ||
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | ||
'sections': { | 'sections': { | ||
− | ' | + | 'custom': { |
'type': 'toolbar', | 'type': 'toolbar', | ||
− | 'label': ' | + | 'label': 'BDSMWiki-specific' |
− | } | + | }, |
+ | 'emvideo': { | ||
+ | 'type': 'button', | ||
+ | 'label': 'Embed Video', | ||
+ | 'icon': '/skins/common/images/button_video.jpg', | ||
+ | 'action': { | ||
+ | 'type': 'encapsulate', | ||
+ | 'options': { | ||
+ | 'pre': '{{ev:', | ||
+ | 'post: 'source|id|width|align|caption|}}' | ||
+ | |||
+ | } | ||
+ | } | ||
+ | } | ||
} | } | ||
} ); | } ); |
Revision as of 06:20, 16 May 2014
/* This is a testing ground for potential new features for the site */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': { 'custom': { 'type': 'toolbar', 'label': 'BDSMWiki-specific' }, 'emvideo': { 'type': 'button', 'label': 'Embed Video', 'icon': '/skins/common/images/button_video.jpg', 'action': { 'type': 'encapsulate', 'options': { 'pre': '{{ev:', 'post: 'source|id|width|align|caption|}}' } } } } } );