Expand all

ve.dm.Converter

Constructor

new ve.dm.Converter(modelRegistry, nodeFactory, annotationFactory) #

DataModel converter.

Converts between HTML DOM and VisualEditor linear data.

Parameters:

Name Type Description
modelRegistry ve.dm.ModelRegistry
nodeFactory ve.dm.NodeFactory
annotationFactory ve.dm.AnnotationFactory
Source:
DataModel converter.

Properties

whitespaceList :stringstatic #

Pattern matching 'white space characters' as defined by the HTML spec only.

All other whitespace should be treated as text, e.g. non-breaking spaces.

See https://www.w3.org/TR/html4/struct/text.html#h-9.1

Type:

  • string
Source:
Pattern matching 'white space characters' as defined by the HTML spec only.