Can I add a custom link in texarea field?

I found the link I added, it will automatically prefix “http://myhost.com/”.
I want the final code in html:

<a href="javascript:MyFunction();">link text</a>

or

<a href="#" onclick="MyFunction();return false;">link text</a>

Of course it’s better to keep the textarea’s format, because many of these are already done work.

You can create your own KirbyTags and also overwrite the default link tag which is defined here.