Thanks Kenneth!
There still is a problem with inserting anchors on the right position.
When using carriage return and in other, hard to define circumstances, the anchor will be placed on the wrong place.
Try to type some text followed by a few Enters. Type some other text, type a few Enters and after that, pick a position and place an anchor followed by another anchor on a different position. As you (hopefully) can see, the anchor is or the anchors are placed on the wrong position.
I've tested this with IE9.