mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 05:56:11 +00:00
0d1617a627
Mostly as a demonstration of how easy this is with MWExtensionNode. The icon was chosen with the following criteria: 1. Recognisable (the ankh is quite common in popular culture, right?) 2. Doesn't look idiotic to academics (I've consulted an Egyptology PhD and they can confirm it's not the glyph for penis) 3. Renders well at <16x16 That said it does look a little like a stick man... Bug: 43118 Change-Id: I9f9e8af501401866bfeecf0eec3690a705fbd4db
36 lines
751 B
JavaScript
36 lines
751 B
JavaScript
/*!
|
|
* VisualEditor DataModel MWHieroNode class.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* DataModel MediaWiki hieroglyphics node.
|
|
*
|
|
* @class
|
|
* @extends ve.dm.MWExtensionNode
|
|
*
|
|
* @constructor
|
|
*/
|
|
ve.dm.MWHieroNode = function VeDmMWHieroNode( length, element ) {
|
|
// Parent constructor
|
|
ve.dm.MWExtensionNode.call( this, 0, element );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.inheritClass( ve.dm.MWHieroNode, ve.dm.MWExtensionNode );
|
|
|
|
/* Static members */
|
|
|
|
ve.dm.MWHieroNode.static.name = 'mwHiero';
|
|
|
|
ve.dm.MWHieroNode.static.tagName = 'table';
|
|
|
|
ve.dm.MWHieroNode.static.extensionName = 'hiero';
|
|
|
|
/* Registration */
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWHieroNode );
|