Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
fa3bfd77
Commit
fa3bfd77
authored
Sep 10, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up mathjax_preprocessor
parent
36b44253
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+5
-4
No files found.
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
fa3bfd77
...
...
@@ -6,6 +6,7 @@ class @Problem
@
element_id
=
@
el
.
attr
(
'id'
)
@
url
=
@
el
.
data
(
'url'
)
@
render
()
@
mathjax_preprocessor
=
false
$
:
(
selector
)
->
$
(
selector
,
@
el
)
...
...
@@ -300,12 +301,12 @@ class @Problem
if
jax
=
MathJax
.
Hub
.
getAllJax
(
target
)[
0
]
eqn
=
$
(
element
).
val
()
if
window
.
mathjax_preprocessor
eqn
=
window
.
mathjax_preprocessor
(
eqn
)
if
@
mathjax_preprocessor
eqn
=
@
mathjax_preprocessor
(
eqn
)
MathJax
.
Hub
.
Queue
[
'Text'
,
jax
,
eqn
],
[
@
updateMathML
,
jax
,
element
]
updateMathML
:
(
jax
,
element
)
=>
try
$
(
"#
#{
element
.
id
}
_dynamath"
).
val
(
jax
.
root
.
toMathML
''
)
...
...
@@ -323,7 +324,7 @@ class @Problem
inputtypeSetupMethods
:
textinputdynamath
:
(
element
)
=>
@
mathjax_preprocessor
=
window
.
mathjax_preprocessor
@
mathjax_preprocessor
=
window
.
mathjax_preprocessor
javascriptinput
:
(
element
)
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment