Extends
Constructor
new ve.ui.MWWikitextStringTransferHandler(surface, item)
#
Detect an attempt to paste wikitext, and convert it to proper HTML.
Parameters:
Name | Type | Description |
---|---|---|
surface |
ve.ui.Surface | |
item |
ve.ui.DataTransferItem |
Detect an attempt to paste wikitext, and convert it to proper HTML.
Methods
process()
#
createDocumentFromParsoidHtml(html, targetDoc) → {ve.dm.Document}static
#
Create a new document from HTML from Parsoid
Parameters:
Name | Type | Description |
---|---|---|
html |
string | HTML from Parsoid |
targetDoc |
ve.dm.Document | DM document this will eventually be merged with |
Returns:
New document
- Type
- ve.dm.Document
Create a new document from HTML from Parsoid