Also - consider creating general purpose method to check if editor is loaded on RTL page. Then you can simplify this function to do just one thing (flip left and right) which would allow to give it more descriptive name than "handleRTL".