mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
7fe7182f43
Fleshes out ve.dm.Annotation to a class. Annotations in the linear model will be instances of a subclass of ve.dm.Annotation. Annotations are defined by subclassing ve.dm.Annotation and registering this subclass with ve.dm.AnnotationFactory. ve.dm.AnnotationFactory keeps track of which annotation classes are known, and has code to match an HTML element to an annotation class, for use in the converter. Change-Id: I68802bdb8736ced1f9e04ee49c623944b448141c
16 lines
454 B
JavaScript
16 lines
454 B
JavaScript
/**
|
|
* VisualEditor data model namespace.
|
|
*
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* Namespace for all VisualEditor data model classes, static methods and static properties.
|
|
*/
|
|
ve.dm = {
|
|
//'nodeFactory': Initialized in ve.dm.NodeFactory.js
|
|
//'converter': Initialized in ve.dm.Converter.js
|
|
//'annotationFactory': Initialized in ve.dm.AnnotationFactory.js
|
|
};
|