Forum Moderators: open

Message Too Old, No Replies

OnBlur OnFocus

Collapse Expand (make collapse default?)

         

henry0

1:46 pm on Apr 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I setting up multiple instances of the FCK editor
where it replaces form area using PHP and MySQL
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() ;
}

henry0

10:48 am on Apr 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't think I am rude, I will not answer any question;
going abroad for a week, will get close to 0 connection...

henry0

12:06 pm on Apr 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Before loosing my sleep on that problem
could anyone let me know if this is possible or not?

thanks