mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
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:
parent
7cd3e1958a
commit
f2cf73eaaf
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue