User:Catrope/common.js

mw.libs.ve.addPlugin( function {

// Line break tool

// Register command to insert break node ve.ui.commandRegistry.register(	new ve.ui.Command( 'break', 'content', 'insert', [ { 'type': 'break' }, { 'type': '/break' } ], true ) );

// Create tool ve.ui.BreakTool = function ( toolGroup, config ) { // Parent constructor ve.ui.Tool.call( this, toolGroup, config ); };

OO.inheritClass( ve.ui.BreakTool, ve.ui.Tool );

ve.ui.BreakTool.static.name = 'break'; ve.ui.BreakTool.static.title = 'Line break'; ve.ui.BreakTool.static.commandName = 'break'; // Link break tool to 'break' command

ve.ui.toolFactory.register( ve.ui.BreakTool );

// HR code (TODO)

});