Define default HTML types for extension nodes

Use span/div for inline/block nodes respectively.

Bug: T157389
Change-Id: I4c501a6af88a490eec83af26adaa515a2b1d18d1
This commit is contained in:
Ed Sanders 2017-02-07 20:12:39 +00:00
parent 7cd3e1958a
commit f2cf73eaaf

View file

@ -176,6 +176,8 @@ OO.inheritClass( ve.dm.MWInlineExtensionNode, ve.dm.MWExtensionNode );
ve.dm.MWInlineExtensionNode.static.isContent = true;
ve.dm.MWInlineExtensionNode.static.tagName = 'span';
/**
* DataModel MediaWiki block extension node.
*
@ -195,3 +197,7 @@ ve.dm.MWBlockExtensionNode = function VeDmMWBlockExtensionNode() {
/* Inheritance */
OO.inheritClass( ve.dm.MWBlockExtensionNode, ve.dm.MWExtensionNode );
/* Static members */
ve.dm.MWBlockExtensionNode.static.tagName = 'div';