mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-30 19:16:05 +00:00
6165b06f28
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.
30 lines
635 B
JavaScript
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 );
|