   # Read the "text content" of a sub-tree of the DOM by creating a selection from it
   getNodeSelectionText: (node, shouldRestoreSelection = true) ->
     if shouldRestoreSelection then @saveSelection()
-        
-    # select the node
+
     sel = @selectNode node
 
     # read (and convert) the content of the selection

    startIndex = if parentContent? then (parentContent.indexOf content, index) else index
    if startIndex is -1
       # content of node is not present in parent's content - probably hidden, or something similar
#       console.log "Content is not present in parent, returning"
       return index



#      f = ((start: mapping.start, end: mapping.end) for p, mapping of @mappings when mapping.atomic)
#      console.log f
#      console.log "[" + mapping.start + ":" + mapping.end + "]" for p, mapping of @mappings when mapping.atomic
      throw new Error "No matches found for [" + start + ":" + end + "]!"

        
    # Create a DOM range object
