Ticket #800 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

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.

Attachments

example.html (7.6 kB) - added by the_therapist 7 years ago.
The page with the textarea on it so you can see the config. I deleted style elements and other unrelated stuff.

Change History

Changed 7 years ago by the_therapist

The page with the textarea on it so you can see the config. I deleted style elements and other unrelated stuff.

Changed 7 years ago by guest

In your example.html I would suggest you to remove comma after 'myTextArea' xinha_editors has 2 elements in IE

xinha_editors = xinha_editors ? xinha_editors : [

'myTextArea',

];

Changed 7 years ago by guest

  • status changed from new to closed
  • resolution set to fixed

Changed 7 years ago by the_therapist

Thank you. It's amazing how you can miss something like that. I hate commas and semicolons :o(

Note: See TracTickets for help on using tickets.