I think this will get you the underlying object:

ColdFusion.RichText.getEditorObject('your_textarea_id');

(I assume the equiv of: FCKeditorAPI.GetInstance('InstanceName') ;)

Then, check this out:

http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/JavaScript_API

And I remember doing something like this, long ago:

***
function FCKeditor_OnComplete( editorInstance )
{
    editorInstance.Events.AttachEvent( 'OnSelectionChange', DoSomething ) ;
}

var counter = 0 ;

function DoSomething( editorInstance )
{
    // This is a sample function that shows in the title bar the number of times
    // the "OnSelectionChange" event is called.
    window.document.title = editorInstance.Name + ' : ' + ( ++counter ) ;
}
***
That OnComplete being a special FCK function.

The new CKEditor is way niftier.  Looking at the old API brings back
memories.  =)

-- 
The last time anybody made a list of the top hundred character
attributes of New Yorkers, common sense snuck in at number 79.
Douglas Adams, "Mostly Harmless"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335502
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to