Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnBlur, OnFocus - setting a default-

Status
Not open for further replies.

webdev007

Programmer
Sep 9, 2005
168
I need three FCK editor instances
Which carries quite a “heavy foot print”
I found a way to collapse and expend the editor
By using OnBlur and OnFocus
My forte is PHP and MySQL but my JS is very much lacking

I would like the default to be set on "collapsed"

is it possible? and if yes how will you do it?
thanks
function FCKeditor_OnComplete( editorInstance )
{
editorInstance.Events.AttachEvent( 'OnBlur', FCKeditor_OnBlur ) ;
editorInstance.Events.AttachEvent( 'OnFocus', FCKeditor_OnFocus ) ;
}
function FCKeditor_OnBlur( editorInstance )
{
editorInstance.ToolbarSet.Collapse() ;
}
function FCKeditor_OnFocus( editorInstance )
{
editorInstance.ToolbarSet.Expand() ;
}
 
Sorry to report that I tried it and a few variations
but to no avail
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top