External links using Phonegap/Telerik Platform/Cordova without OnClick on link
<p>We are using Telerik Platform, which runs on Cordova.  We have dynamically pulled content from a CMS that shows some of our content in our app.  Our authors want to put links in the content, but of course, I don't want them having to put an 'onclick' on the links in the Rich Text Editor in the CMS.  </p>

<p>Is there a way to allow our authors to just enter links with a CSS class added to them or something like that, that I can capture the click, using jQuery or something, and have the link get translated in the Cordova app to open the "_system" browser.  </p>

<p>I ultimately want my links to look like this for my authors to use when they enter them into the CMS:</p>

<pre><code>&lt;a href="http://mylink.com" target="_blank" class="externalLink"&gt;My external link&lt;/a&gt;
</code></pre>

<p>But in the PhoneGap/Telerik Platform app, I want the link to open in the system browsers.  Which currently it is not, it is opening in the current webview and locks the app into the webpage without any way of getting back.</p>

<p>I tried this so far but to no avail. It seems like the 'href' just triggers the browser to go and then the app gets caught in the webview browser and won't go back without force quitting the app.</p>

<pre><code>   //IN THE APP JS ITSELF
   //Don't even think this works
 $('a.externalLink, a[target="_blank"]').on('click', function(e){
   e.preventDefault();// Does not prevent default
   console.log("trying to get system");//Does not console
   alert("prevent default"); // Does not alert
   window.open($(this).attr('href'), '_system');
    return false;
 }); 
</code></pre>

<p>It seems that the link that gets entered into the CMS just directs to the 'href' link and ignores the above jQuery.  Any way to catch it before the webview catches it?</p>