tinyMCE clickable link

by Roger Martin

HTML

<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
<div id="tinymce">
  <p>User should be able to <a id="mylink" href="http://google.com">navigate to a link</a> and also edit the text by clicking outside the link.</p>
</div>

JavaScript

tinymce.init({
  selector: '#tinymce',
  inline: true
});

$('#mylink').on('click', function(e) {
  // This never fires
  console.log('Link clicked...');
});