Class: MobileFrontendArticleTarget

MobileFrontendArticleTarget(overlay, configopt)

new MobileFrontendArticleTarget(overlay, configopt)

MediaWiki mobile frontend article target.

Parameters:
Name Type Attributes Description
overlay VisualEditorOverlay

Mobile frontend overlay

config Object <optional>

Configuration options

Source:

Extends

  • MobileArticleTarget

Methods

adjustContentPadding()

Match the content padding to the toolbar height

Source:

destroy()

Destroy the target

Source:

editSource()

FIXME: @inheritdoc once this file is in the right repo

Source:

onContainerScroll()

FIXME: @inheritdoc once this file is in the right repo

Source:

onSurfaceScroll()

Handle surface scroll events

Source:

onWindowScroll()

Handle window scroll events

Source:

save()

FIXME: @inheritdoc once this file is in the right repo

Source:

saveComplete()

FIXME: @inheritdoc once this file is in the right repo

Source:

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

Source:

setSurface()

Source:

showSaveDialog()

FIXME: @inheritdoc once this file is in the right repo

Source:

surfaceReady()

FIXME: @inheritdoc once this file is in the right repo

Source:

tryTeardown()

FIXME: @inheritdoc once this file is in the right repo

Source: