No highlight after quick edit
Opened this issue · 1 comments
alkisg commented
Hi Bugo,
I managed to implement the unicode highlighter I needed and now I'm a happy user of this mod, thank you for this!
A small glitch is that when people click on the "quick edit" button and update a forum post "inline", after saving it it loses its highlighting.
Does "quick edit" offer any javascript code hooks? If so, you could call hljs.highlightElement(el)
from there...
dragomano commented
As a quick fix, you can add hljs.highlightAll();
into Themes/default/scripts/topic.js:
QuickModify.prototype.onModifyDone = function (XMLDoc)
{
...
hljs.highlightAll();
}