title: How to track activity inside iframe of Wordpress tinyMCE editor
body: <p>Im looking for solution that can track user activity inside wp_editor, i mean, i want to know if he is idle or not and then save content as concept (autosaving)</p>
  
  <p>I was trying to use this <a href="https://css-tricks.com/snippets/jquery/fire-event-when-user-is-idle/" rel="nofollow noreferrer">https://css-tricks.com/snippets/jquery/fire-event-when-user-is-idle/</a> and it's working mostly for all elements on website but i can't use it inside wp_editor because it's iframe.</p>
  
  <p>and i tried also this library:
  <a href="https://github.com/kidh0/jquery.idle" rel="nofollow noreferrer">https://github.com/kidh0/jquery.idle</a></p>
  
  <pre><code>   $('body').idle({
        onIdle: function(){
          $("#workingState").html('&lt;?=displayInLanguage("&lt;p&gt;Stav:   &lt;strong&gt;neaktívny, obsah uložený.&lt;/strong&gt;&lt;/p&gt;", "&lt;p&gt;Status: &lt;strong&gt;inactive, content saved.&lt;/strong&gt;&lt;/p&gt;")?&gt;');
  
          if( $('#show_add_actuality').hasClass('d-block') ){
              saveForm('actualityForm_sk', "autoSaveScript");
              saveForm('actualityForm_en', "autoSaveScript");
          }
        },
        onActive: function(){
          $("#workingState").html('&lt;?=displayInLanguage("&lt;p&gt;Stav: &lt;strong&gt;aktívny&lt;/strong&gt;&lt;/p&gt;", "&lt;p&gt;Status: &lt;strong&gt;active&lt;/strong&gt;&lt;/p&gt;")?&gt;');
        },
        idle: 2000
      });
  </code></pre>
  
  <p>so as you can see im trying to save form in slovak and english language when user is not active, i will perform ajax request on both forms which includes also wp_editor, but i can't just track activity inside another page (which wp_editor generate another iframe site inside, its blank but still it's not working that way)</p>
  
  <p>So i'm expecting some solution that can help me track user activity inside wordpress editor.</p>
  
  <p>Script is working as expected, the only activity that i can't track is wordpress editor, no typing, no cursor movements nothing it will ignore idle state.</p>
  
  <p>Thanks for any answer.</p>