add method to calculate approximate position of an element inside the TinyMCE editor