Update forms.j2
Updated textarea onkeyup handlers to pass katex={{ request.katex }} instead of mathjax={{ request.mathjax }} in both reply and edit forms.
This commit is contained in:
parent
b07a2ebe88
commit
864632b779
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
|||
name = "thread_data"
|
||||
id = "textarea-{{ node.id }}"
|
||||
class = "common-textarea"
|
||||
onkeyup = "previewAjax( 'textarea-{{ node.id }}', 'preview-{{ node.id }}', show_raw=true, mathjax={{ request.mathjax }} )"
|
||||
onkeyup = "previewAjax( 'textarea-{{ node.id }}', 'preview-{{ node.id }}', show_raw=true, katex={{ request.katex }} )"
|
||||
placeholder = "{% if request.namespace.placeholder_text %}{{ request.namespace.placeholder_text }}{% else %}What do you want to say? markdown{% endif %}"
|
||||
required></textarea>
|
||||
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
name = "thread_data"
|
||||
id = "edit-textarea-{{ node.id }}"
|
||||
class = "common-textarea textarea_edit"
|
||||
onkeyup = "previewAjax( 'edit-textarea-{{ node.id }}', 'node-data-{{ node.id }}', show_raw=false, mathjax={{ request.mathjax }} )"
|
||||
onkeyup = "previewAjax( 'edit-textarea-{{ node.id }}', 'node-data-{{ node.id }}', show_raw=false, katex={{ request.katex }} )"
|
||||
placeholder = "{% if request.namespace.placeholder_text %}{{ request.namespace.placeholder_text }}{% else %}What do you want to say? markdown{% endif %}"
|
||||
required>{{ node.data }}</textarea>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue