there's code like this in "fck_2.js"
FCK.ExecuteNamedCommand = function( commandName, commandParameter )
{ FCKUndo.SaveUndoStep() ;
if ( FCK.RedirectNamedCommands[ commandName ] != null )
FCK.ExecuteRedirectedNamedCommand( commandName, commandParameter ) ;
else
{ FCK.Focus() ;
FCK.EditorDocument.execCommand( commandName, false, commandParameter ) ;
FCK.Events.FireEvent( 'OnSelectionChange' ) ;
}
}
what kind of command that will give "FCK.RedirectNamedCommands[ commandName ]" = null ?
and what kind of command that will give not null value ? please anyone help me
FCK.ExecuteNamedCommand = function( commandName, commandParameter )
{ FCKUndo.SaveUndoStep() ;
if ( FCK.RedirectNamedCommands[ commandName ] != null )
FCK.ExecuteRedirectedNamedCommand( commandName, commandParameter ) ;
else
{ FCK.Focus() ;
FCK.EditorDocument.execCommand( commandName, false, commandParameter ) ;
FCK.Events.FireEvent( 'OnSelectionChange' ) ;
}
}
what kind of command that will give "FCK.RedirectNamedCommands[ commandName ]" = null ?
and what kind of command that will give not null value ? please anyone help me
RE: help, about "FCK.ExecuteNamedCommand"
// Named commands to be handled by this browsers specific implementation.
FCK.RedirectNamedCommands =
{
Print : true,
Paste : true,
Cut : true,
Copy : true
// START iCM MODIFICATIONS
// Include list functions so we can ensure content is wrapped
// with P tags if not using BRs on carriage return, etc
/*
InsertOrderedList : true,
InsertUnorderedList : true
*/
// END iCM MODIFICATIONS
}
(there's no use currently in IE)
RE: help, about "FCK.ExecuteNamedCommand"
if you said no use in IE about FCK.RedirectNamedCommands, then "FCK.ExecuteNamedCommand" function always execute " FCK.Focus() ;
FCK.EditorDocument.execCommand( commandName, false, commandParameter ) ;
FCK.Events.FireEvent( 'OnSelectionChange' ) ;" command (the else command), doesn't it ?
and, do you know where can i get the UML Diagram for FCKeditor ?
thanks