mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
a835c03bc1
Rather than meta-things being special kinds of nodes, they are now a separate class of things (MetaItems) along with Nodes and Annotations. * Created a generic ve.dm.MetaItem that meta items inherit from. There will be actual instances of this class as well in the upcoming meta group code. * Renamed MetaNode to AlienMetaItem, MWMetaNode to MWMetaItem, 'metaBlock'/'metaInline' to 'alienMeta' * Created a MetaItemFactory, handle meta items in the ModelRegistry * Kill ve.dm.Node.static.isMeta, now obsolete ve.dm.Converter: * Pass in the MetaItemFactory * Look up data element types in the ModelRegistry rather than the NodeFactory, because they can be either nodes or meta items * Document createDataElement() and make explicit that modelClass can be either a node or a meta item * Handle meta items in getDataFromDom() * In getDomFromData(), check the MetaItemFactory as well as the NodeFactory Change-Id: I893709c6f3aa00f85c1b905b70f9f4e597bdeada |
||
---|---|---|
.. | ||
ve.dm.AlienNode.js | ||
ve.dm.BreakNode.js | ||
ve.dm.CenterNode.js | ||
ve.dm.DefinitionListItemNode.js | ||
ve.dm.DefinitionListNode.js | ||
ve.dm.DocumentNode.js | ||
ve.dm.HeadingNode.js | ||
ve.dm.ImageNode.js | ||
ve.dm.ListItemNode.js | ||
ve.dm.ListNode.js | ||
ve.dm.MWEntityNode.js | ||
ve.dm.MWHeadingNode.js | ||
ve.dm.MWPreformattedNode.js | ||
ve.dm.ParagraphNode.js | ||
ve.dm.PreformattedNode.js | ||
ve.dm.TableCellNode.js | ||
ve.dm.TableNode.js | ||
ve.dm.TableRowNode.js | ||
ve.dm.TableSectionNode.js | ||
ve.dm.TextNode.js |