Is there a way to change the defalt behaviour of TimyMCE, so that when you insert a link, it renders something like this:TinyMCE - 你如何使用onClick而不是<a href=""> for links?
<span onclick="window.open('http://google.com', '_blank', 'location=yes');"></span>
instead of
<a href="http://www.google.com" target="_blank" location="yes"></a>
Ideally, I would like this to be done by the Link button, but it could be done onSubmit.
ADDED: The reason for doing this (as I know it seems like bad practice) is to be able to port to PhoneGap (using the InAppBrowser插件),因为它不适合浏览器使用。
为了给你最好的解决方案,你能解释为什么你想要这种非正统的行为? –