Thanks for the suggestion cclaerhout.
Found another way. If you only need a couple of anchor, add this as custom bb code:
<a href="javascript:;" onclick="document.location.hash='anchor1';">custom test</a>
And in another bb-code
<a name="anchor1"></a>