title: codemirror - get element class under cursor
body: <p>Is it possible get the classname from element where is cursor| located in editor content?</p>
  
  <pre><code>editor.on('cursorActivity', function(ed)
  {
      // get current element classname (style) from codemirror editor when you move cursor| with keyboard
  });
  </code></pre>
  
  <p>I have:</p>
  
  <pre><code>$(document).on('mousedown', '.CodeMirror-line&gt;span&gt;*', _detectTag);
  
  function _detectTag()
  {
      var classList = $(this).attr('class');
  
      console.log(classList);
  }
  </code></pre>
  
  <p>It works, but it's not what I need because it's necessary to click with a mouse.</p>
  
  <p><strong>For clarification:</strong> <a href="https://jsfiddle.net/3tj1wv44/1/" rel="nofollow noreferrer">https://jsfiddle.net/3tj1wv44/1/</a>
  (Click with mouse on element.. Is highlighted. Same highlighting i need when you move cursor in editor with keyboard.)</p>
  
  <p>Any way to solve this is much appreciate.</p>
  
  <p>Thanks in advance.</p>