You can scroll through any node in tinymce like a regular html node, because they are actually regular html nodes.
So this will be enough:
var ed = tinyMCE.activeEditor; var element = ed.dom.getParent(ed.selection.getNode(), 'table'); var child = element.firstChild; while(child){ if(child.nodeName.toLowerCase() == 'tr'){
source share