// checking FCKeditors on the page
// will return the first FCKeditor instance in which changes were detected or false of no changes were made
function checkFCKeditors()
{
var fckeditorName, editorInstance;
if (window.FCKeditorAPI)
{
for (fckeditorName in FCKeditorAPI.Instances) // Use __Instances in FCKeditors prior to version 2.6
{
if ((editorInstance = FCKeditorAPI.GetInstance(fckeditorName)).IsDirty())
{
return editorInstance;
}
}
}
return false;
}
Re: How do you validate multiple instances of the editor?
I've got a snippet for that, but not on this PC; PM me or reply on this topic to remind me to look for it
Re: How do you validate multiple instances of the editor?
Take the textarea id from which you are making FCK Editor.
and check
if(document.getElementById('ID of the Text Area').innerText==' ')
//Do what ever you want
Tell me if this is useful for you or not.Wil tell you another solution.....and explain your prb little more how your are using fckEditor.
Cheers
Re: How do you validate multiple instances of the editor?