Show latex source in context items
Change-Id: I32af1c13c31dc0f94434daa4a4db8c94a7033582
This commit is contained in:
parent
c55a9014be
commit
1ce95efb54
|
@ -164,6 +164,7 @@
|
||||||
"ve-math/ve.ui.MWLatexDialog.css",
|
"ve-math/ve.ui.MWLatexDialog.css",
|
||||||
"ve-math/ve.ce.MWLatexNode.css",
|
"ve-math/ve.ce.MWLatexNode.css",
|
||||||
"ve-math/ve.ui.MWLatexInspector.css",
|
"ve-math/ve.ui.MWLatexInspector.css",
|
||||||
|
"ve-math/ve.ui.MWLatexContextItem.css",
|
||||||
"ve-math/ve.ui.MWLatexPage.css"
|
"ve-math/ve.ui.MWLatexPage.css"
|
||||||
],
|
],
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
|
@ -63,3 +63,10 @@ ve.ui.MWLatexContextItem.prototype.getCommand = function () {
|
||||||
this.context.isMobile() ? this.constructor.static.inlineEditCommand : this.constructor.static.commandName
|
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 );
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue