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

From www.PSALTIKI.info
Jump to: navigation, search
(Created page with "/* $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'format', tools: { 'bluetext': { label: 'Blue text', type: 'button...")
 
m (Blanked the page)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*
 
  $('#wpTextbox1').wikiEditor('addToToolbar', {
 
    section: 'main',
 
    group: 'format',
 
    tools: {
 
      'bluetext': {
 
        label: 'Blue text',
 
        type: 'button',
 
        icon: '/images/BoutonsDefaut03.png',
 
        action: {
 
          type: 'encapsulate',
 
          options: {
 
            pre: "<font color='blue'>",
 
            peri: "Insert comment here",
 
            post: "</font>"
 
          }
 
        }
 
      }
 
    }
 
  });
 
*/
 
  
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
 
'sections': {
 
'emoticons': {
 
'type': 'toolbar', // Can also be 'booklet'
 
'label': 'Emoticons'
 
// or 'labelMsg': 'section-emoticons-label' for a localized label
 
}
 
}
 
} );
 
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
 
'section': 'emoticons',
 
'groups': {
 
'faces': {
 
'label': 'Faces' // or use labelMsg for a localized label, see above
 
}
 
}
 
} );
 
 
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
 
'section': 'emoticons',
 
'group': 'faces',
 
'tools': {
 
'smile': {
 
label: 'Smile!', // or use labelMsg for a localized label, see above
 
filters: [ 'body.ns-talk' ],
 
type: 'button',
 
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: ":)" // text to be inserted
 
}
 
}
 
}
 
}
 
} );
 

Latest revision as of 21:37, 28 June 2017