I have an issue on a big app that I cannot reproduce on a basic test page :
In a contentEditable div I have an onclick function that triggers
document.execCommand("bold", false, "");
On a basic test page, when I hit it the first time it adds <strong>text</strong>
tags.
But when I hit it a second time, i expect it to clear the strong tags and go back to "text"
On the big app, I end up addindg more and more tags, like <strong><strong><strong>text</strong></strong></strong>
Any idea of what is making that ?