CustomizeToolbar

From Madde14 English
Jump to: navigation, search

$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {

       section: 'main',
       group: 'format',
       tools: {
               "hline": {
                       label: 'Horizontal line',
                       type: 'button',
                       icon: '//bits.wikimedia.org/skins-1.5/common/images/button_hr.png',
                       action: {
                               type: 'encapsulate',
                               options: {
                                       pre: "----",
                                       ownline: true
                               }
                       }
               }
       }

} );