I used to have 4 editors in my page, but it took a while to load.
i since reverted to javascript integration to dynamically create the editor
when i want it.
IE: a user clicks on a button, i create an instance and call ReplaceTextarea().
But if the user clicks the button again, a second instance gets drawn.
How can i prevent that?
i since reverted to javascript integration to dynamically create the editor
when i want it.
IE: a user clicks on a button, i create an instance and call ReplaceTextarea().
But if the user clicks the button again, a second instance gets drawn.
How can i prevent that?
RE: javascript integration
Here's a solution.
var oEditor = FCKeditorAPI.GetInstance('ed001') ;
if(typeof(oEditor)=="undefined")
{
var oFCKeditor = new FCKeditor( 'ed001' ) ;
oFCKeditor.BasePath = "./editor/" ;
oFCKeditor.ToolbarSet = "Default2";
oFCKeditor.Height = "400";
oFCKeditor.ReplaceTextarea() ;
}
There you go. replace ed001 with your instance name and you're good to go.