Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)

« Utilisateur:Groche/common.js » : différence entre les versions

De AJLSM
Aller à la navigation Aller à la recherche
mAucun résumé des modifications
m a déplacé Utilisateur:Elopez/common.js vers Utilisateur:Groche/common.js : Automatically moved page while merging the user "Elopez" to "Groche"
 
(6 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
var customizeToolbar = function() {
// <noinclude>On travaille en dur dans le fichier {{path|modules/jquery.wikiEditor.toolbar.config.js}}</noinclude>
$('#wpTextbox1').wikiEditor('addToToolbar', {
        section: 'advanced',
        group: 'format',
        tools: {
                "strikethrough": {
                        label: 'Strike',
                        type: 'button',
                        icon: '//upload.wikimedia.org/wikipedia/commons/3/30/Btn_toolbar_rayer.png',
                        action: {
                                type: 'encapsulate',
                                options: {
                                        pre: "<s>",
                                        post: "</s>"
                                }
                        }
                }
        }
});
};
/* Check if we are in edit mode and the required modules are available and then customize the toolbar */
if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) {
        mw.loader.using( 'user.options', function () {
                if ( mw.user.options.get('usebetatoolbar') ) {
                        mw.loader.using( 'ext.wikiEditor.toolbar', function () {
                                $(document).ready( customizeToolbar );
                        } );
                }
        } );
}

Dernière version du 28 mai 2013 à 09:21

// <noinclude>On travaille en dur dans le fichier {{path|modules/jquery.wikiEditor.toolbar.config.js}}</noinclude>