Utente:LikeLifer/common.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nuova pagina: jQuery(document).ready(function(){ if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { $j( function() { $j( '#wpTextbox1' ).wikiEdit...
(Nessuna differenza)

Versione delle 16:52, 2 gen 2012

jQuery(document).ready(function(){ 
    if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
        $j( function() {
            $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                    'section': 'advanced',
                    'group': 'format',
                    'tools': {
                            'sott': {
                                    label: 'Testo sottolineato',
                                    type: 'button',
                                    icon: 'http://upload.wikimedia.org/wikipedia/it/3/37/Pulsante_sottolineato.png',
                                    action: {
                                            type: 'encapsulate',
                                            options: {
                                                    pre: '<span style="text-decoration: underline">',
                                                    post: '</span>',
                                            }
                                    }
                            }
                    }
            } );
 
        } );
    }
});