How can I add OnMouseOver and OnClick event for editor. I want to change editor-style when user put mouse over the editor, and when he clicks on the editor then toolbox gets collapsed. In the sample I found examples for onBlur and OnFocus events, but when i write the same for onClick or OnMouseOver nothing happens.
This is the code I found in samples:
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();
}
This is the code I found in samples:
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();
}
RE: OnMouseOver and OnClick event