User:Root/common.js: Difference between revisions

From www.PSALTIKI.info
Jump to navigation Jump to search
mNo edit summary
m Blanked the page
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/**
* Extra buttons in toolbar
* @stats [[File:Krinkle_InsertWikiEditorButton.js]]
*/
$.ajax({
url: '//localhost:8001/index.php?title=MediaWiki:InsertWikiEditorButton.js&action=raw&ctype=text/javascript',
dataType: 'script',
cache: true
}).done(function () {


// Happy face
krInsertWikiEditorButton({
id: "mw-text-blue",
icon: "/images/BoutonsDefaut03.png",
label: 'make text blue',
insertBefore: '<font color="blue">',
insertAfter: '</font>',
sampleText: 'past your text'
});
// Monkey
krInsertWikiEditorButton({
id: 'mw-text-red',
icon: '/images/redtext.png',
label: 'Insert monkey',
insertBefore: '<font color="red">',
insertAfter: '</font>',
sampleText: 'past your text'
});
});
/*
  $('#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>"
          }
        }
      }
    }
  });
*/

Latest revision as of 21:37, 28 June 2017