Hello all. I have been using FCKeditor for a year now with great success. I have one question, can we set a default for the pasting function.
I know that there is a force as plain text variable:
FCKConfig.ForcePasteAsPlainText = true ;
However that causes you not to be able to use the icons Paste From Word or any other paste controls. Basically you are really forced to only paste as plain text.
Ideally, I would like the user to paste as plain text (so that we can style the pages) as default. but if needed I want the user to be able to paste from MS Word with all of their styling and/or links.
Basically there should be a variable that says FCKConfig.PasteDefault = plaintext ;
FCKConfig.PasteDefault = html ;
FCKConfig.PasteDefault = msword ;
or something like that
Any ideas are helpful. Thanks.
I know that there is a force as plain text variable:
FCKConfig.ForcePasteAsPlainText = true ;
However that causes you not to be able to use the icons Paste From Word or any other paste controls. Basically you are really forced to only paste as plain text.
Ideally, I would like the user to paste as plain text (so that we can style the pages) as default. but if needed I want the user to be able to paste from MS Word with all of their styling and/or links.
Basically there should be a variable that says FCKConfig.PasteDefault = plaintext ;
FCKConfig.PasteDefault = html ;
FCKConfig.PasteDefault = msword ;
or something like that
Any ideas are helpful. Thanks.

RE: Default Paste Function
Just a thought...
RE: Default Paste Function
I guess another solution would simply be that FORCE AS PLAIN TEXT should have an override feature (i.e. the MS Word button should still work.
RE: Default Paste Function
RE: Default Paste Function
There might be a better way, but I don't have the map ;o)
RE: Default Paste Function
However, at times I would just like to be able to paste with formatting. No biggie, just improved functionality.
RE: Default Paste Function
And I was saying that the thing that I miss from paste as plain text it's that it just paste everything as plain text, but I would like to keep some tags like tables still there, but without any formatting tag just the basic tags like <p>, <br>, <a> and <table>(+childs <tr>...)
RE: Default Paste Function
Create a plugin, nothing fancy, just a button "paste with format", and in its execute Method, store the current FCKConfig.ForcePasteAsPlainText value, set it to false, execute the default paste and restore back the previous value:
MyPaste.Execute = function ()
{
RE: Default Paste Function
I didn't thought about this, but maybe it's as easy as follows: (didn't tested it, this is pseudo-code)
Create a plugin, nothing fancy, just a button "paste with format", and in its execute Method, store the current FCKConfig.ForcePasteAsPlainText value, set it to false, execute the default paste and restore back the previous value:
MyPaste.Execute = function ()
{
var previous=FCKConfig.ForcePasteAsPlainText;
FCKConfig.ForcePasteAsPlainText=false;
FCK.Commands("PASTE").Execute();
FCKConfig.ForcePasteAsPlainText=previous;
}
(don't remember right now if that's the correct way to call a command)
When I'm able to test it I'll post back the finished code.
RE: Default Paste Function
RE: Default Paste Function
RE: Default Paste Function
Im also looking to make the paste from word as default.I'm a beginner in FCKEditor ,can you please brief how to solve this problem???
Thanks
Re: Default Paste Function
I'm interested to make the paste from word as default, too. Can you give information!?
WGH...