Opened 17 years ago
Closed 17 years ago
#2566 closed Bug (duplicate)
multiple editor instances, FCKeditorAPI.GetInstance error
| Reported by: | Yanfu Xie | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | FCKeditor 2.6.3 |
| Keywords: | Confirmed | Cc: |
Description
Summary: when i set multiple editor instances, then get the instances use FCKeditorAPI.GetInstance, it will return undefined (sometime)
vista + firefox 3.01
Steps to replicate:
1.open fckeditor/_samples/html/sample02.html
2.edit the javascript to :
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; oFCKeditor.BasePath = sBasePath ; oFCKeditor.ReplaceTextarea() ; var oFCKeditor2 = new FCKeditor( 'FCKeditor2' ) ; oFCKeditor2.BasePath = sBasePath ; oFCKeditor2.ReplaceTextarea() ;
3.edit the form code to :
<form action="../php/sampleposteddata.php" method="post" target="_blank">
<div>
<textarea name="FCKeditor1" rows="5" cols="80" style="width: 100%; height: 200px"><p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p></textarea>
<textarea name="FCKeditor2" rows="10" cols="80" style="width: 100%; height: 300px">test</textarea>
</div>
<br />
<input type="submit" value="Submit" />
<br />
<input type="button" value="Get" onclick="alert('FCKeditor1' +'=>'+ FCKeditorAPI.GetInstance('FCKeditor1'));alert('FCKeditor2' +'=>'+ FCKeditorAPI.GetInstance('FCKeditor2'));" />
</form>
4.run the sample in firefox 3.01 , click the "Get" button, sometime it will return undefined.
Attachments (1)
Change History (4)
Changed 17 years ago by
| Attachment: | sample02.html added |
|---|
comment:1 Changed 17 years ago by
| Keywords: | Confirmed added; multiple editor instances FCKeditorAPI.GetInstance removed |
|---|
comment:2 Changed 17 years ago by
#2529 is a DUP of this.
The same problem is described on http://drupal.org/node/303428.

Occurs very rarely.
In FF3 on Vista32 there is 25% chance that will work only 1 field, other editor instances are not visible.
Does not occur with IE7 and FF2 (unable to confirm)