I have two editors on one page their ID's are rtbPreViewActuals and rtbPreViewGiudance. When I try to use the FCKeditorAPI.GetInstance methode for them It will find the first editore and the second is Undefinded. This only happens in Firefox I am using ver3.0.3. Works fin in ie.
html....
<fckeditorv2:fckeditor id="rtbPreViewActuals" runat="server" width="500px" height="100px" toolbarstartexpanded="False" toolbarset="Basic" basepath="FCKeditor/" forcepasteasplaintext="true" geckousespan="false"></fckeditorv2:fckeditor>
<fckeditorv2:fckeditor id="rtbPreViewGiudance" runat="server" width="500px" height="100px" toolbarstartexpanded="False" toolbarset="Basic" basepath="FCKeditor/" forcepasteasplaintext="true" geckousespan="false"></fckeditorv2:fckeditor>
javascript....
var oEditor = FCKeditorAPI.GetInstance('rtbPreViewActuals');
var oEditor2 = FCKeditorAPI.GetInstance('rtbPreViewGiudance');
alert(oEditor); ' this is object, object
alert(oEditor2); ' this is undefinded
html....
<fckeditorv2:fckeditor id="rtbPreViewActuals" runat="server" width="500px" height="100px" toolbarstartexpanded="False" toolbarset="Basic" basepath="FCKeditor/" forcepasteasplaintext="true" geckousespan="false"></fckeditorv2:fckeditor>
<fckeditorv2:fckeditor id="rtbPreViewGiudance" runat="server" width="500px" height="100px" toolbarstartexpanded="False" toolbarset="Basic" basepath="FCKeditor/" forcepasteasplaintext="true" geckousespan="false"></fckeditorv2:fckeditor>
javascript....
var oEditor = FCKeditorAPI.GetInstance('rtbPreViewActuals');
var oEditor2 = FCKeditorAPI.GetInstance('rtbPreViewGiudance');
alert(oEditor); ' this is object, object
alert(oEditor2); ' this is undefinded
Re: FCKeditorAPI.GetInstance for second Editor Broken in FireFox
Re: FCKeditorAPI.GetInstance for second Editor Broken in FireFox
Re: FCKeditorAPI.GetInstance for second Editor Broken in FireFox
any way how to use function FCKeditor_OnComplete() ?
and what if editor's id are not fixed such as:
JavaScript:
HTML:
thanks a lot in advance...
Re: FCKeditorAPI.GetInstance for second Editor Broken in FireFox
So, I lead you to create a var for each instance at page scope, not function one, so that you can access from meta data function, and set them values with code similar to the posted before.
By the way, OnComplete and other functions are documented on the site.
I can't be more explicit since I left fckeditor project a few months ago.
Good luck!