That page is showing how to create a custom clean up function based just on the default cleanup, you should put it in a plugin and change its contents so it fits what you want. just try to do an alert() so you can check that it's using you function and then start doing the changes.
You should learn first how to use a plugin, in the distributed files there are some simple ones that can help you (for example the table commands , use it and then add your code there. then remove the previous code, rename the plugin and you are done)
On the other hand, you just can start changing directly fck_paste.html as it is quite simple, and you'll only have to care about a plugin when you want to upgrade, but by that time you'll know much more of the editor and it will be easier.
Could someone provide assistance on this item, it seems like a highly requested feature?
Javascript is not my strong suit so I'm not able to make headway with this using the documentation in the wiki. How can I get access to the pasted data without having to paste it into the fckeditor or the pop-up dialogs?
One method might be to create a hidden div to put the pasted text and clean it and then put that html into the fckeditor. There is an OnPaste event in the API but what is the value of the pasted text so I can pass it to the CleanWord function? If I can get the value of the pasted text I might not need to create the hidden div.
Re: Pasting from word
Re: Pasting from word
Of course, I've understand that I've to do a plugin, but...how exactly?!
Can you explain me, step by step, what I've to do?!
Thanks you very much!
WGH!
Re: Pasting from word
On the other hand, you just can start changing directly fck_paste.html as it is quite simple, and you'll only have to care about a plugin when you want to upgrade, but by that time you'll know much more of the editor and it will be easier.
Re: Pasting from word
Last, I hope for you, question is: to call my "custom function" what i've to do? Plugins like table commands appears like button in the toolbar...
WGH...
Re: Pasting from word
Re: Pasting from word
Javascript is not my strong suit so I'm not able to make headway with this using the documentation in the wiki. How can I get access to the pasted data without having to paste it into the fckeditor or the pop-up dialogs?
One method might be to create a hidden div to put the pasted text and clean it and then put that html into the fckeditor. There is an OnPaste event in the API but what is the value of the pasted text so I can pass it to the CleanWord function? If I can get the value of the pasted text I might not need to create the hidden div.
Any help would be greatly appreciated.
Thanks,
John