new MobileFrontendArticleTarget(overlay, configopt)
MediaWiki mobile frontend article target.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
overlay |
VisualEditorOverlay | Mobile frontend overlay |
|
config |
Object |
<optional> |
Configuration options |
Extends
- MobileArticleTarget
Methods
adjustContentPadding()
Match the content padding to the toolbar height
destroy()
Destroy the target
editSource()
FIXME: @inheritdoc once this file is in the right repo
onContainerScroll()
FIXME: @inheritdoc once this file is in the right repo
onSurfaceScroll()
Handle surface scroll events
onWindowScroll()
Handle window scroll events
save()
FIXME: @inheritdoc once this file is in the right repo
saveComplete()
FIXME: @inheritdoc once this file is in the right repo
saveFail(doc, saveData, wasRetry, jqXHR, status, response)
FIXME: @inheritdoc once this file is in the right repo
Parameters:
Name | Type | Description |
---|---|---|
doc |
HTMLDocument | HTML document we tried to save |
saveData |
Object | Options that were used |
wasRetry |
boolean | Whether this was a retry after a 'badtoken' error |
jqXHR |
Object | |
status |
string | Text status message |
response |
Object | null | API response data |
setSurface()
showSaveDialog()
FIXME: @inheritdoc once this file is in the right repo
surfaceReady()
FIXME: @inheritdoc once this file is in the right repo
tryTeardown()
FIXME: @inheritdoc once this file is in the right repo