TypeError: textRange(...).getClientRects is not a function

Right. The editor view isn’t supported under jsDOM. You may get it to work, but I don’t provide any guaranteed.