Open tomchiverton opened 11 years ago
Oh, now that's a kicker! Since you've named your iframe "body", any references to document.body return the iframe rather than the actual body. I didn't know that IE would override document.body like that.
I suppose we could use document.getElementsByTagName('body')[0] instead. My hunch, though, is that you're going to run into more issues using name="body" since using document.body is a fairly common practice in libraries.
Yup, but unfortunately this is a progressive enhancement of an older site - we can't rename the IFRAME without a lot more work.
In pages with constructs like
PIE 1.0.0 complains Line: 21 Error: Object doesn't support this property or method
Workaround is to skip part of the PIE.Length which has a very few consequences later on in the method, but we don't hit them
parent in the above context appears to be the IFRAME tag, removing that tag stops the RTE.