Opened 16 years ago

Last modified 16 years ago

#2312 closed Bug

ReplaceTextarea() broken on IE 6 — at Initial Version

Reported by: Michael Slusarz Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.6.1
Keywords: Pending Cc:

Description

From http://bugs.horde.org/ticket/6958 :

After playing around with this for about 2 hours, I have determined 
that this is a (critical) bug in fckeditor; more specifically, 
ReplaceTextarea().  I don't see what you are seeing, but instead I see 
the fckeditor load, then the window blinks for a second, and then it 
*looks* like it is completely loaded.  Just 2 problems: 1.) all text 
that was previous in the textarea is gone and 2.) clicking on 
heading/font, or clicking anywhere in the textarea, outputs JS 
warnings.  Strangely enough - if I put an alert() in the middle of the 
fckeditor code, the delay it takes for me to close the alert box 
appears to be enough to allow the loading process to proceed 
correctly.  I see the textarea text correctly populated into the 
fckeditor window and i get no javascript errors when I click on 
various stuff.  So my guess is that something is trying to be placed 
in a DOM element too quickly on IE6 before that element is ready.

The code in question works in all other browsers. As stated above, the code works on IE 6 if I put in an alert() statement anywhere in the fckeditor code (I put in an "alert("HERE!");" statement right after the definition of FCKBrowserInfo.

This code fires onload:

oFCKeditor.ReplaceTextarea()

In the base content of the page we have this declaration:

var oFCKeditor = new FCKeditor('message');

The textarea definition looks like this:

   <textarea class="composebody" tabindex="8" name="message" id="message" rows="20" cols="80">Foo</textarea>

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy