title: How to bind click or keydown event in tinymce editor
body: <p>I am using tinymce editor in angular 4. i want to bind <code>click</code> or <code>keydown</code> event, if any user clicks inside the editor. I've tried the following code but no luck:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;app-tinymce [(ngModel)]="Model.Description" required name="Description" #Description="ngModel"&gt;&lt;/app-tinymce&gt;
  </code></pre>
  
  <p>JS Page:</p>
  
  <pre><code>$('body iframe').load(function(){
  $('body iframe').contents().find('input').bind('click',function(e) {
         alert('bingo?');
      });
  });
  
   $(document).on("keydown", function(){         
      $("iframe").load(function(){
      $(this).contents().on("click, keydown", function(){
          alert("Click detected inside iframe.");
      });
    });
  });
  </code></pre>
  
  <p>Please advise in this. </p>