Finding all instances on the page can be done like this:
if (window.FCKeditorAPI)
{
for (fckeditorName in FCKeditorAPI.Instances) // Use __Instances in FCKeditors prior to version 2.6
{
// do anything you like with it
}
}
Did you open http://docs.fckeditor.net/FCKeditor_2.x ... API#Events? Just create the function FCKeditor_OnComplete anywhere in your script. It will be called when the FCKeditor has finished loading and will receive the editorInstance as a parameter.
function FCKeditor_OnComplete(editorInstance)
{
alert('The FCKeditor has finished loading. The editorInstance's name is ' + editorInstance.Name);
}
Re: editorInstance (API) properties and functions - 2.6.1
how can i get the instance on window onload of the fckEditor.It is giving Error FCKEditorAPI is null.
Regards
Re: editorInstance (API) properties and functions - 2.6.1
Finding all instances on the page can be done like this:
Re: editorInstance (API) properties and functions - 2.6.1
I am making the FCK Editor like
window.onload = function()
{
var oFCKeditor = new FCKeditor("ctl00_MainContent_txtBody_MailSender") ;
oFCKeditor.BasePath = "../../Scripts/fckeditor/" ;
oFCKeditor.Height = 300;
}
How to proceed to attach a event to it.How to get the instance from it.All is done in window.load().
please help
Re: editorInstance (API) properties and functions - 2.6.1
Did you open http://docs.fckeditor.net/FCKeditor_2.x ... API#Events?
Just create the function FCKeditor_OnComplete anywhere in your script. It will be called when the FCKeditor has finished loading and will receive the editorInstance as a parameter.