TinyMCE – r has no properties

25 03 2008

Occurs in firefox when there’s a textarea in a hidden div.

Change in tiny_mce.js


IsCollapsed: function () (
This.getRng var r = ();
if(r.item)return false;
return r.boundingWidth==0||this.getSel().isCollapsed
)

to


IsCollapsed: function () (
This.getRng var r = ();
if(r==null||r.item)return false;
return r.boundingWidth==0||this.getSel().isCollapsed
)


Actions

Information

5 responses

4 04 2008
TinyMCE problem with Expression Engine in Firefox — Tyssen Design

[...] found the solution to the problem at Tis How I Code. There’s also some further discussion of the issue on the Moxiecode [...]

8 04 2008
macsim

Oh thanks mate, you save my day ;)

1 06 2008
Rob

Thank you… already tried to fix this for some time. Now IE finally stop’s crashing because of this error… ;)

1 03 2009
NoRegret

Wow … thanks a lot. I don’t even want to imagine, what I would have messed up on my code to get rid of this error … Cheers, mate.

16 04 2009
keins

Thanks a lot, it was of great help.

Leave a comment