Document : add `getTextRange` with doc

_Document : implement `getTextRange` and `replace`
_DocumentProxy : implement `getTextRange`