mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-24 06:24:29 +00:00
Use language as node description
No point using body as that is already visible. Change-Id: I3425ae4712ccc820ba736ee605524abbc35aecc4
This commit is contained in:
parent
6a21e64f77
commit
c09c3ed190
|
@ -28,6 +28,10 @@ ve.ce.MWBlockSyntaxHighlightNode.static.name = 'mwBlockSyntaxHighlight';
|
|||
|
||||
ve.ce.MWBlockSyntaxHighlightNode.static.primaryCommandName = 'syntaxhighlightDialog';
|
||||
|
||||
ve.ce.MWBlockSyntaxHighlightNode.static.getDescription = function ( model ) {
|
||||
return ve.getProp( model.getAttribute( 'mw' ), 'attrs', 'lang' );
|
||||
};
|
||||
|
||||
/* Registration */
|
||||
|
||||
ve.ce.nodeFactory.register( ve.ce.MWBlockSyntaxHighlightNode );
|
||||
|
|
|
@ -29,6 +29,10 @@ ve.ce.MWInlineSyntaxHighlightNode.static.name = 'mwInlineSyntaxHighlight';
|
|||
|
||||
ve.ce.MWInlineSyntaxHighlightNode.static.primaryCommandName = 'syntaxhighlightInspector';
|
||||
|
||||
ve.ce.MWInlineSyntaxHighlightNode.static.getDescription = function ( model ) {
|
||||
return ve.getProp( model.getAttribute( 'mw' ), 'attrs', 'lang' );
|
||||
};
|
||||
|
||||
/* Registration */
|
||||
|
||||
ve.ce.nodeFactory.register( ve.ce.MWInlineSyntaxHighlightNode );
|
||||
|
|
Loading…
Reference in a new issue