Expand all

ve.ui.MWWikitextStringTransferHandler

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
Source:

Detect an attempt to paste wikitext, and convert it to proper HTML.

Methods

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

Source:

Returns:

New document

Type
ve.dm.Document
Create a new document from HTML from Parsoid