mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-12-03 18:36:30 +00:00
34 lines
927 B
JavaScript
34 lines
927 B
JavaScript
|
/*!
|
||
|
* VisualEditor ContentEditable MWBlockSyntaxHighlightNode class.
|
||
|
*
|
||
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
||
|
* @license The MIT License (MIT); see LICENSE.txt
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* ContentEditable MediaWiki block syntax highlight node.
|
||
|
*
|
||
|
* @class
|
||
|
*
|
||
|
* @constructor
|
||
|
*/
|
||
|
ve.ce.MWBlockSyntaxHighlightNode = function VeCeMWBlockSyntaxHighlightNode() {
|
||
|
// Parent method
|
||
|
ve.ce.MWBlockExtensionNode.super.apply( this, arguments );
|
||
|
|
||
|
// Mixin method
|
||
|
ve.ce.MWSyntaxHighlightNode.call( this );
|
||
|
};
|
||
|
|
||
|
OO.inheritClass( ve.ce.MWBlockSyntaxHighlightNode, ve.ce.MWBlockExtensionNode );
|
||
|
|
||
|
OO.mixinClass( ve.ce.MWBlockSyntaxHighlightNode, ve.ce.MWSyntaxHighlightNode );
|
||
|
|
||
|
ve.ce.MWBlockSyntaxHighlightNode.static.name = 'mwBlockSyntaxHighlight';
|
||
|
|
||
|
ve.ce.MWBlockSyntaxHighlightNode.static.primaryCommandName = 'syntaxhighlightDialog';
|
||
|
|
||
|
/* Registration */
|
||
|
|
||
|
ve.ce.nodeFactory.register( ve.ce.MWBlockSyntaxHighlightNode );
|