Ticket #800 (closed defect: fixed)
Errors with Xinha for IE6.0.2900.2180
| Reported by: | the_therapist | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | exception thrown, ie6 |
| Cc: |
Description
Xinha works fine with Firefox 1.5, but fails to load in IE6. I have tried the latest nightly version as of 2006-5-18 as well as two older version from several months ago.
I am using the full Xinha toolbar, one textarea and the following plugins:
'CharacterMap', 'ContextMenu', 'FullScreen?', 'ListType', 'SpellChecker', 'Stylist', 'SuperClean', 'TableOperations', 'ImageManager', 'CSS'
In IE6 I receive the following error and the editor failed to load:
Exception thrown and not caught
I traced it to line 79 of htmlarea.js:
if(!textarea) throw("Tried to create HTMLArea without textarea specified.");
After commenting out that line I received this error in IE6:
Error: 'Style is null or not an object
I traced it to line 98-99 of htmlarea.js and commented out the following:
w: textarea.style.width ? textarea.style.width : (textarea.offsetWidth ? (textarea.offsetWidth + 'px') : (textarea.cols+'em')),
h: textarea.style.height ? textarea.style.height : (textarea.offsetHeight ? (textarea.offsetHeight + 'px') : (textarea.rows+'em'))
The editor now loads in IE6 and works fine, but as it loads I see a javascript error detected in the status bar which quickly disappears as the editor loads.
Perhaps I have something named wrong, a config issue on the page with the textarea, but I could not see one, or find any reference to the first error.
