MDL-44757 atto_equation: Use Moodle Docs URL for TeX doc
This commit is contained in:
committed by
Marina Glancy
parent
7887b47524
commit
36beb828de
@@ -22,8 +22,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['editequation'] = 'Edit equation';
|
||||
$string['editequation_desc'] = 'Equations are written in <a target="_blank" href="http://en.wikibooks.org/wiki/TeX" title="Link to wikipedia">TeX.</a>';
|
||||
$string['editequation'] = 'Edit equation using <a href="{$a}" target="_blank">TeX</a>';
|
||||
$string['librarygroup1'] = 'Operators';
|
||||
$string['librarygroup1_desc'] = 'List of tex commands to list on the operators tab.';
|
||||
$string['librarygroup2'] = 'Arrows';
|
||||
|
||||
@@ -34,7 +34,6 @@ function atto_equation_strings_for_js() {
|
||||
$PAGE->requires->strings_for_js(array('saveequation',
|
||||
'editequation',
|
||||
'preview',
|
||||
'editequation_desc',
|
||||
'update',
|
||||
'librarygroup1',
|
||||
'librarygroup2',
|
||||
@@ -82,5 +81,6 @@ function atto_equation_params_for_js($elementid, $options, $fpoptions) {
|
||||
'elements' => get_config('atto_equation', 'librarygroup4'),
|
||||
));
|
||||
|
||||
return array('texfilteractive' => $texfilteractive, 'contextid'=>$context->id, 'library'=>$library);
|
||||
return array('texfilteractive' => $texfilteractive, 'contextid' => $context->id, 'library' => $library,
|
||||
'texdocsurl' => get_docs_url('Using_TeX_Notation'));
|
||||
}
|
||||
|
||||
+12
-2
@@ -52,9 +52,8 @@ var COMPONENTNAME = 'atto_equation',
|
||||
FORM: '' +
|
||||
'<form class="atto_form">' +
|
||||
'{{{library}}}' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_TEXT}}">{{get_string "editequation" component}}</label>' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_TEXT}}">{{{get_string "editequation" component texdocsurl}}}</label>' +
|
||||
'<textarea class="fullwidth {{CSS.EQUATION_TEXT}}" id="{{elementid}}_{{CSS.EQUATION_TEXT}}" rows="8"></textarea><br/>' +
|
||||
'<p>{{{get_string "editequation_desc" component}}}</p>' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_PREVIEW}}">{{get_string "preview" component}}</label>' +
|
||||
'<div class="fullwidth {{CSS.EQUATION_PREVIEW}}" id="{{elementid}}_{{CSS.EQUATION_PREVIEW}}"></div>' +
|
||||
'<div class="mdl-align">' +
|
||||
@@ -317,6 +316,7 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
elementid: this.get('host').get('elementid'),
|
||||
component: COMPONENTNAME,
|
||||
library: library,
|
||||
texdocsurl: this.get('texdocsurl'),
|
||||
CSS: CSS
|
||||
}));
|
||||
|
||||
@@ -452,6 +452,16 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
*/
|
||||
library: {
|
||||
value: {}
|
||||
},
|
||||
|
||||
/**
|
||||
* The link to the Moodle Docs page about TeX.
|
||||
*
|
||||
* @attribute texdocsurl
|
||||
* @type string
|
||||
*/
|
||||
texdocsurl: {
|
||||
value: null
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+12
-2
@@ -52,9 +52,8 @@ var COMPONENTNAME = 'atto_equation',
|
||||
FORM: '' +
|
||||
'<form class="atto_form">' +
|
||||
'{{{library}}}' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_TEXT}}">{{get_string "editequation" component}}</label>' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_TEXT}}">{{{get_string "editequation" component texdocsurl}}}</label>' +
|
||||
'<textarea class="fullwidth {{CSS.EQUATION_TEXT}}" id="{{elementid}}_{{CSS.EQUATION_TEXT}}" rows="8"></textarea><br/>' +
|
||||
'<p>{{{get_string "editequation_desc" component}}}</p>' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_PREVIEW}}">{{get_string "preview" component}}</label>' +
|
||||
'<div class="fullwidth {{CSS.EQUATION_PREVIEW}}" id="{{elementid}}_{{CSS.EQUATION_PREVIEW}}"></div>' +
|
||||
'<div class="mdl-align">' +
|
||||
@@ -317,6 +316,7 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
elementid: this.get('host').get('elementid'),
|
||||
component: COMPONENTNAME,
|
||||
library: library,
|
||||
texdocsurl: this.get('texdocsurl'),
|
||||
CSS: CSS
|
||||
}));
|
||||
|
||||
@@ -451,6 +451,16 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
*/
|
||||
library: {
|
||||
value: {}
|
||||
},
|
||||
|
||||
/**
|
||||
* The link to the Moodle Docs page about TeX.
|
||||
*
|
||||
* @attribute texdocsurl
|
||||
* @type string
|
||||
*/
|
||||
texdocsurl: {
|
||||
value: null
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -50,9 +50,8 @@ var COMPONENTNAME = 'atto_equation',
|
||||
FORM: '' +
|
||||
'<form class="atto_form">' +
|
||||
'{{{library}}}' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_TEXT}}">{{get_string "editequation" component}}</label>' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_TEXT}}">{{{get_string "editequation" component texdocsurl}}}</label>' +
|
||||
'<textarea class="fullwidth {{CSS.EQUATION_TEXT}}" id="{{elementid}}_{{CSS.EQUATION_TEXT}}" rows="8"></textarea><br/>' +
|
||||
'<p>{{{get_string "editequation_desc" component}}}</p>' +
|
||||
'<label for="{{elementid}}_{{CSS.EQUATION_PREVIEW}}">{{get_string "preview" component}}</label>' +
|
||||
'<div class="fullwidth {{CSS.EQUATION_PREVIEW}}" id="{{elementid}}_{{CSS.EQUATION_PREVIEW}}"></div>' +
|
||||
'<div class="mdl-align">' +
|
||||
@@ -315,6 +314,7 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
elementid: this.get('host').get('elementid'),
|
||||
component: COMPONENTNAME,
|
||||
library: library,
|
||||
texdocsurl: this.get('texdocsurl'),
|
||||
CSS: CSS
|
||||
}));
|
||||
|
||||
@@ -450,6 +450,16 @@ Y.namespace('M.atto_equation').Button = Y.Base.create('button', Y.M.editor_atto.
|
||||
*/
|
||||
library: {
|
||||
value: {}
|
||||
},
|
||||
|
||||
/**
|
||||
* The link to the Moodle Docs page about TeX.
|
||||
*
|
||||
* @attribute texdocsurl
|
||||
* @type string
|
||||
*/
|
||||
texdocsurl: {
|
||||
value: null
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user