I am experimenting TinyMCE editor to set its content on click of an hyperlink. For this I used their own demo page and tried adding a link their. But clicking on link did not set the content of the editor. So I went on debugging it in IE9. I tried putting breakpoint on the line, but surprised – I was able to toggle breakpoint everywhere, except that line.
snapshot here: http://s15.postimage.org/a7ntjabfv/Tiny_MCE_Debug.png
Why is this happening?
I am experimenting TinyMCE editor to set its content on click of an hyperlink.
Share
Actually, now that you mentioned it…I figured what happened.
The line where you’re trying to set the breakpoint looks like invalid html, so IE behaves correctly.
In your example, html attributes (like the
onclickyou have) are delimited by double quotes ("). But you also have another string delimited by"inside the attributes, which leads to a syntax error. To get around this, you must delimit your strings by single quotes:'. So the solution that you found is correct.