Fetch and display a preview of the current editing area.
- Source:
Example
var preview = require( 'mediawiki.page.preview' );
preview.doPreview();
Methods
doPreview(config) → {jQuery.Promise|undefined
}static
#
undefined
}static
#
Fetch and display a preview of the current editing area.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | Configuration options. Properties
|
- Source:
Fires:
- Hooks~event:'wikipage.categories'
- Hooks~event:'wikipage.content'
- Hooks~event:'wikipage.diff'
- Hooks~event:'wikipage.indicators'
- Hooks~event:'wikipage.tableOfContents'
Returns:
jQuery.Promise or undefined
if no $textareaNode
was provided in the config.
- Type
-
jQuery.Promise
|
undefined