Difference between revisions of "User:Tersia/common.js"

From BDSM Wiki
Jump to: navigation, search
Line 15: Line 15:
 
                                   'options': {
 
                                   'options': {
 
                                               'pre': '{{ev:',
 
                                               'pre': '{{ev:',
                                               'post: 'source|id|width|align|caption|}}'
+
                                               'post': 'source|id|width|align|caption|}}'
  
 
                                   }
 
                                   }

Revision as of 06:22, 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|}}'

                                   }
                        }
                }
	}
} );