You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open up the reply composer and enter [code=php]$foo = "bar";[/code]
Look at the live preview, and see the syntax highlighting
Submit the reply
Look at the post, and see no syntax highlighting
Expected behaviour:
The submitted post should have syntax highlighting.
What needs to be done:
Call typeof hljs !== 'undefined' && hljs.initHighlighting() in CommentPost's config method, but only if the post's contentHtml hasn't changed since the last redraw.
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
[code=php]$foo = "bar";[/code]
Expected behaviour:
The submitted post should have syntax highlighting.
What needs to be done:
typeof hljs !== 'undefined' && hljs.initHighlighting()
in CommentPost'sconfig
method, but only if the post's contentHtml hasn't changed since the last redraw.The text was updated successfully, but these errors were encountered: