- style = $(elm.container).offset();
- w = elm.container.offsetWidth;
- h = elm.container.offsetHeight;
- // Quick fix for chrome until I get a tool to inspect the dom
- // Chrome returns 0x0
- if(! w)
- w = 530;
- if(! h)
- h = 130;
-
+ // I can't find an "official" way to get the element who get all
+ // this fraking thing that is tinyMCE.
+ // This code will broke again at some point...
+ var container = $(tinyMCE.activeEditor.getContainer()).find("table");
+ style = $(container).offset();
+ w = $(container).width();
+ h = $(container).height();