Hi
I need to make the paste from word function to work on all pasting rather than just when you click the button. I have tried the suggestions in other threads but cant get it to work.
Any help would be greatly appreciated!
I need to make the paste from word function to work on all pasting rather than just when you click the button. I have tried the suggestions in other threads but cant get it to work.
Any help would be greatly appreciated!
RE: Paste from word on all pastes
The simplest way to do it is to create your own plugin MyPaste for example.
var MyPasteCommand = function(name)
{
this.Name = name;
}
MyPasteCommand.prototype.Execute = function()
{
FCK.PasteFromWord();
return true;
}
MyPasteCommand.prototype.GetState = function()
{
;
}
// Register the command
FCKCommands.RegisterCommand( 'MyPaste',new MyPasteCommand('MyPaste') ) ;
// Create the "Paste" toolbar button.
var oMyPasteItem = new FCKToolbarButton( 'MyPaste', 'Paste', 'Paste' ) ;
oMyPasteItem.IconPath = FCKConfig.PluginsPath + 'MyPaste/mypaste.gif' ; //or just use any of the existing images
FCKToolbarItems.RegisterItem( 'MyPaste', oMyPasteItem );
Later you need to add to youf config:
FCKConfig.Plugins.Add("MyPaste", '');
It's possible, i screwed something in the above text, you need to check it, but the idea itself should be clear.
jacek