You can use Javascript to execute any of the commands of the toolbar in this manner:
<script type="text/javascript">
function MyNewDoc()
{
// Get the editor instance that we want to interact with.
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
// Execute the command
oEditor.Commands.GetCommand('NewPage').Execute();
}
</script>
This code will be the same as pressing the NEW DOCUMENT button.
Re: empty the contents of FCKEDITOR
This code will be the same as pressing the NEW DOCUMENT button.
MD