Im using a code tag which has its content-editable set to true. Its not triggering the change event which is attached to it on load. What are the list of all possible events that are triggered from it?
I have tried the input event listener. It catches the event. But places the cursor in the start after the handler is executed. Any fix for this?
Im using the highlightjs for highlighting something, which is within the code tag with the content-editable option set to true.
<div class="steps-cont"><pre><code class="steps full-width javascript" contenteditable="true"></code></pre></div>
//Callback:
$('code.steps').unbind("input").bind("input", function(){
hljs.highlightBlock($('code.steps')[0]);
});