mediawiki-extensions-Tabber.../modules/ve-tabberNeue/ve.dm.MWTabberNode.js
alistair3149 6165b06f28
feat: add basic VisualEditor support for tabber tags
Adding some basic support for visual editing in VisualEditor. Currently it is nothing fancy, just the ability to recognize <tabber/> tags and a simple dialog with code editor to edit the Tabber code. It would be iterated upon in the future.
2022-04-21 15:14:52 -04:00

30 lines
635 B
JavaScript

/**
* DataModel MediaWiki Tabber node.
*
* @class
* @extends ve.dm.MWBlockExtensionNode
*
* @constructor
* @param {Object} [element] Reference to element in linear model
*/
ve.dm.MWTabberNode = function VeDmMWTabberNode() {
// Parent constructor
ve.dm.MWTabberNode.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.dm.MWTabberNode, ve.dm.MWBlockExtensionNode );
/* Static members */
ve.dm.MWTabberNode.static.name = 'mwTabber';
ve.dm.MWTabberNode.static.tagName = 'div';
ve.dm.MWTabberNode.static.extensionName = 'tabber';
/* Registration */
ve.dm.modelRegistry.register( ve.dm.MWTabberNode );