changes in flattoc
add getTextRange