Page MenuHomeWickedGov Phorge

ve.init.sa.MobileTarget.js
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

ve.init.sa.MobileTarget.js

/*!
* VisualEditor Standalone Initialization Mobile Target class.
*
* @copyright See AUTHORS.txt
*/
/**
* Initialization standalone mobile target.
*
* @class
* @extends ve.init.sa.Target
*
* @constructor
* @param {Object} [config] Configuration options
* @param {Object} [config.toolbarConfig] Configuration options for the toolbar
*/
ve.init.sa.MobileTarget = function VeInitSaMobileTarget( config = {} ) {
// Parent constructor
ve.init.sa.MobileTarget.super.call( this, config );
this.$element.addClass( 've-init-mobileTarget' );
};
/* Inheritance */
OO.inheritClass( ve.init.sa.MobileTarget, ve.init.sa.Target );
/* Static Properties */
ve.init.sa.MobileTarget.static.toolbarGroups = [
{
// Message visualeditor-toolbar-history exists in case we want
// to make this a list group in future, to expose 'redo'.
name: 'history',
include: [ 'undo' ]
},
{
name: 'style',
header: OO.ui.deferMsg( 'visualeditor-toolbar-text-style' ),
title: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
label: OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
invisibleLabel: true,
type: 'list',
icon: 'textStyle',
include: [ { group: 'textStyle' }, 'language', 'clear' ],
forceExpand: [ 'bold', 'italic', 'clear' ],
promote: [ 'bold', 'italic' ],
demote: [ 'strikethrough', 'code', 'underline', 'language', 'clear' ]
},
{
name: 'link',
include: [ 'link' ]
},
{
name: 'structure',
header: OO.ui.deferMsg( 'visualeditor-toolbar-structure' ),
title: OO.ui.deferMsg( 'visualeditor-toolbar-structure' ),
label: OO.ui.deferMsg( 'visualeditor-toolbar-structure' ),
invisibleLabel: true,
type: 'list',
icon: 'listBullet',
include: [ { group: 'structure' } ],
demote: [ 'outdent', 'indent' ]
},
{
name: 'insert',
header: OO.ui.deferMsg( 'visualeditor-toolbar-insert' ),
title: OO.ui.deferMsg( 'visualeditor-toolbar-insert' ),
label: OO.ui.deferMsg( 'visualeditor-toolbar-insert' ),
invisibleLabel: true,
type: 'list',
icon: 'add',
include: '*'
}
];
ve.init.sa.MobileTarget.static.enforceResizesContent = true;

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 22, 09:19 (4 h, 45 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f8/0b/fe667ac7d61a62eb723ee3a9de7c
Default Alt Text
ve.init.sa.MobileTarget.js (2 KB)

Event Timeline