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() ;
}
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() ;
}