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

From BDSM Wiki
Jump to: navigation, search
Line 1: Line 1:
/* This is a testing ground for potential new features for the site */
+
$('#wpTextbox1').wikiEditor('addToToolbar', {
 
+
section: 'advanced',
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
+
group: 'format',
'sections': {
+
tools: {
'custom': {
+
"embedVideo": {
'type': 'toolbar',
+
label: 'EmbedVideo',
'label': 'BDSMWiki-specific'
+
type: 'button',
},
+
icon: '/skins/common/images/button_video.jpg',
                'emvideo': {
+
action: {
                        'type': 'button',
+
type: 'encapsulate',
                        'label': 'Embed Video',
+
options: {
                        'icon': '/skins/common/images/button_video.jpg',
+
pre: "{{#ev:",
                        'action': {
+
post: "source|id|width|align|caption}}"
                                  'type': 'encapsulate',
+
}
                                  'options': {
+
}
                                              'pre': '{{ev:',
+
}
                                              'post': 'source|id|width|align|caption|}}'
+
 
+
                                  }
+
                        }
+
                }
+
 
}
 
}
} );
+
});

Revision as of 02:27, 17 May 2014

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"embedVideo": {
			label: 'EmbedVideo',
			type: 'button',
			icon: '/skins/common/images/button_video.jpg',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{#ev:",
					post: "source|id|width|align|caption}}"
				}
			}
		}
	}
});