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插件),因爲它不適合瀏覽器使用。
爲了給你最好的解決方案,你能解釋爲什麼你想要這種非正統的行爲? –