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

From BDSM Wiki
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
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: {
'emoticons': {
+
"embedVideo": {
'type': 'toolbar',
+
label: 'EmbedVideo',
'label': 'Emoticons'
+
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}}"
				}
			}
		}
	}
});