Hi to all!
I try to look for an answer to my problem, but I cannot find it, so excuse me if I repeat for the 99th times this question!
I'm tring to paste from word removing a big part of MSWord tag.
So I didn't want tag or style like mso-list, MsoNormal,... I would also remove font size and font color, but i'd like to preserve bold, italic and generical structure...
I see the CustomCleanWord function written at this page, but i cannot understand how to use it! If I could learn this, I think I'll be able to edit the function to do what I've to do...
Can you help me?!
Thank you very much!
WGH
Tue, 07/24/2007 - 11:23
#1
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