Opened 16 years ago

Closed 15 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:


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: 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">
			<textarea name="FCKeditor1" rows="5" cols="80" style="width: 100%; height: 200px">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href=""&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;</textarea>

			<textarea name="FCKeditor2" rows="10" cols="80" style="width: 100%; height: 300px">test</textarea>
		<br />
		<input type="submit" value="Submit" />
		<br />
		<input type="button" value="Get" onclick="alert('FCKeditor1' +'=>'+ FCKeditorAPI.GetInstance('FCKeditor1'));alert('FCKeditor2' +'=>'+ FCKeditorAPI.GetInstance('FCKeditor2'));" />
	</form> the sample in firefox 3.01 , click the "Get" button, sometime it will return undefined.

Attachments (1)

sample02.html (2.7 KB) - added by Yanfu Xie 16 years ago.

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by Yanfu Xie

Attachment: sample02.html added

comment:1 Changed 16 years ago by Artur Formella

Keywords: Confirmed added; multiple editor instances FCKeditorAPI.GetInstance removed

Occurs very rarely.

  • Turn off the cache.
  • Go to the modified sample02.html
  • Turn off firefox.
  • Turn on firefox with the previous session.

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)

comment:2 Changed 16 years ago by Artur Formella

#2529 is a DUP of this.

The same problem is described on

comment:3 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Resolution: duplicate
Status: newclosed

dup of #2519

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