Show latex source in context items

Change-Id: I32af1c13c31dc0f94434daa4a4db8c94a7033582
This commit is contained in:
Ed Sanders 2019-07-31 15:04:35 +01:00
parent c55a9014be
commit 1ce95efb54
3 changed files with 21 additions and 0 deletions

View File

@ -164,6 +164,7 @@
"ve-math/ve.ui.MWLatexDialog.css",
"ve-math/ve.ce.MWLatexNode.css",
"ve-math/ve.ui.MWLatexInspector.css",
"ve-math/ve.ui.MWLatexContextItem.css",
"ve-math/ve.ui.MWLatexPage.css"
],
"dependencies": [

View File

@ -0,0 +1,13 @@
/*!
* VisualEditor UserInterface MWLatexContextItem styles.
*
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
* @license MIT
*/
.ve-ui-mwLatexContextItem .ve-ui-linearContextItem-body {
/* Specify a valid second value to fix size in Chrome/FF */
font-family: monospace, 'Courier';
white-space: pre-wrap;
max-height: 10em;
}

View File

@ -63,3 +63,10 @@ ve.ui.MWLatexContextItem.prototype.getCommand = function () {
this.context.isMobile() ? this.constructor.static.inlineEditCommand : this.constructor.static.commandName
);
};
/**
* @inheritdoc
*/
ve.ui.MWLatexContextItem.prototype.getDescription = function () {
return ve.ce.nodeFactory.getDescription( this.model );
};