The problem occurs when there is a querystring in the url...
i have set up a simple page with one editor, relative path
I navigate to my page /test.aspx, then it works correctly
If i use it from the url /test.aspx&id=blabla
then i get misformed links in the editor... : <a href="http://cutesoft.net/test.aspx?id=blabla#a">test </a>
latest versions of chrome & firefox..;
I can not reproduce it online on your sample page though..;
rgds