Fix case where LaTeX preview could not be turned off.
This commit is contained in:
parent
8f95476529
commit
c8507e2e92
@ -187,6 +187,7 @@ QR =
|
|||||||
QR.nodes.el.classList.toggle 'sjis-preview', Conf['sjisPreview']
|
QR.nodes.el.classList.toggle 'sjis-preview', Conf['sjisPreview']
|
||||||
|
|
||||||
texPreviewShow: ->
|
texPreviewShow: ->
|
||||||
|
return QR.texPreviewHide() if $.hasClass QR.nodes.el, 'tex-preview'
|
||||||
$.addClass QR.nodes.el, 'tex-preview'
|
$.addClass QR.nodes.el, 'tex-preview'
|
||||||
QR.nodes.texPreview.textContent = QR.nodes.com.value
|
QR.nodes.texPreview.textContent = QR.nodes.com.value
|
||||||
$.event 'mathjax', null, QR.nodes.texPreview
|
$.event 'mathjax', null, QR.nodes.texPreview
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user