Merge branch 'MDL-80246-main' of https://github.com/mihailges/moodle

This commit is contained in:
Jun Pataleta 2024-01-11 11:50:07 +08:00
commit f25864aa3a
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
5 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -121,6 +121,7 @@ const getTemplateContext = (editor, data) => {
return Object.assign({}, { return Object.assign({}, {
elementid: editor.id, elementid: editor.id,
elementidescaped: CSS.escape(editor.id),
libraries: libraries, libraries: libraries,
texdocsurl: texDocsUrl, texdocsurl: texDocsUrl,
delimiters: Selectors.delimiters, delimiters: Selectors.delimiters,

View File

@ -29,7 +29,8 @@
Example context (json): Example context (json):
{ {
"elementid": "exampleId", "elementid": "exampleId:1",
"elementidescaped": "exampleId\\:1",
"texdocsurl": "http://abc.com", "texdocsurl": "http://abc.com",
"equation": "\\Downarrow ", "equation": "\\Downarrow ",
"delimiters": { "delimiters": {

View File

@ -29,7 +29,8 @@
Example context (json): Example context (json):
{ {
"elementid": "exampleId" "elementid": "exampleId:1",
"elementidescaped": "exampleId\\:1"
} }
}} }}
<div class="tiny_equation_library"> <div class="tiny_equation_library">
@ -40,7 +41,7 @@
}}{{#active}} aria-selected="true"{{/active}}{{! }}{{#active}} aria-selected="true"{{/active}}{{!
}}{{^active}} aria-selected="false" tabindex="-1"{{/active}}{{! }}{{^active}} aria-selected="false" tabindex="-1"{{/active}}{{!
}} href="#{{elementid}}_tiny_equation_group_{{key}}"{{! }} href="#{{elementid}}_tiny_equation_group_{{key}}"{{!
}} data-target="#{{elementid}}_tiny_equation_group_{{key}}" }} data-target="#{{elementidescaped}}_tiny_equation_group_{{key}}"
role="tab" data-toggle="tab" role="tab" data-toggle="tab"
> >
{{groupname}} {{groupname}}