Difference between revisions of "User:Tersia/common.js"
From BDSM Wiki
(Created page with "→This is a testing ground for potential new features for the site: $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'characters', 'pages': { 'emoticons': {...") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | $('#wpTextbox1').wikiEditor('addToToolbar', { | |
− | + | section: 'advanced', | |
− | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { | + | group: 'format', |
− | + | tools: { | |
− | ' | + | "embedVideo": { |
− | + | label: 'EmbedVideo', | |
− | + | type: 'button', | |
− | + | icon: '//upload.wikimedia.org/wikipedia/commons/3/30/Btn_toolbar_rayer.png', | |
− | + | action: { | |
+ | type: 'encapsulate', | ||
+ | options: { | ||
+ | pre: "{{#ev:", | ||
+ | post: "source|id|width|align|caption}}" | ||
+ | } | ||
+ | } | ||
} | } | ||
} | } | ||
− | } ); | + | }); |
Latest revision as of 02:29, 17 May 2014
$('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "embedVideo": { label: 'EmbedVideo', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/3/30/Btn_toolbar_rayer.png', action: { type: 'encapsulate', options: { pre: "{{#ev:", post: "source|id|width|align|caption}}" } } } } });