Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7428095
ve.init.sa.MobileTarget.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
ve.init.sa.MobileTarget.js
View Options
/*!
* 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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 09:19 (4 h, 37 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f8/0b/fe667ac7d61a62eb723ee3a9de7c
Default Alt Text
ve.init.sa.MobileTarget.js (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment