[TASK] RTE: Move JS method getNodeByPosition