Hello!
Pasting text through the "Paste Text From Word" removes unwanted style definitions and works as expected. However my users are quite reluctant to use this button and they usually just paste via CTRL+V.
Is there any method to filter out unwanted stylings when text is pasted via keyboard shortcuts?
Pasting text through the "Paste Text From Word" removes unwanted style definitions and works as expected. However my users are quite reluctant to use this button and they usually just paste via CTRL+V.
Is there any method to filter out unwanted stylings when text is pasted via keyboard shortcuts?
Re: Automatically remove style attributes on paste
FCKConfig.AutoDetectPasteFromWord = true ;
Also have a look at all the other settings on this page: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
Re: Automatically remove style attributes on paste
Regrettably "
" is an Internet Explorer feature only.
Re: Automatically remove style attributes on paste
Re: Automatically remove style attributes on paste
The dialog "paste from word" works great, however I want theses filters applied even when text is pasted via keyboard shortcuts.
Re: Automatically remove style attributes on paste
If this is something you would like to look into, then I will see if I can find the link.
Re: Automatically remove style attributes on paste
Re: Automatically remove style attributes on paste
I cannot find it, but here is the code. I cannot give the person credit because I don't know who it is. Also, I made small changes that should speed it up a bit.
I removed our stuff from it, so it might not build, just check namespaces/braces etc.
Then you use it
The extra method for cleaning out files is there as well...not sure if that still works since we don't use it any more.