Use language as node description

No point using body as that is already visible.

Change-Id: I3425ae4712ccc820ba736ee605524abbc35aecc4
This commit is contained in:
Ed Sanders 2019-07-31 16:41:15 +01:00
parent 6a21e64f77
commit c09c3ed190
2 changed files with 8 additions and 0 deletions

View file

@ -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 );

View file

@ -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 );