title: Loop through children of current node in TinyMCE
body: <p>Suppose I have a specific table selected in TinyMCE, like this:</p>
  
  <pre><code>    var ed = tinyMCE.activeEditor;
      var selection = ed.selection.getContent();
      var element = ed.dom.getParent(ed.selection.getNode(), 'table');
  </code></pre>
  
  <p>How do I loop through the <code>tr</code> elements inside this?</p>
  
  <p>I suspect one of these methods might be relevant, but I'm so new to classes, I'm having trouble understanding how to apply them:</p>
  
  <p><strong>TinyMCE select():</strong> <a href="http://www.tinymce.com/wiki.php/API3:method.tinymce.dom.DOMUtils.select" rel="noreferrer">http://www.tinymce.com/wiki.php/API3:method.tinymce.dom.DOMUtils.select</a></p>
  
  <p><strong>TinyMCE getAll():</strong> <a href="http://www.tinymce.com/wiki.php/API3:method.tinymce.html.Node.getAll" rel="noreferrer">http://www.tinymce.com/wiki.php/API3:method.tinymce.html.Node.getAll</a></p>