Catch Paste From Word WYMEditor

Catch Paste From Word WYMEditor – I’m trying to improve usability and user-friendliness of the WYMeditor. I needA�catch all paste command hover the editor like ‘CTRL+V’ and call automatically the paste dialog. Actually, itA�was a part of my tasks. I just want to keep it up as documentation or share it on my blog. Maybe it canA�helps some people who do the same task as mine. I have did some search on Google and found a nice forum disccuss about it. Here is the forum:

But when I tried to implement the codeA�on my page, my pageA�was got weird and got some error notices too. I tried to find out the errors. And It looked like it was because I used different WYMeditor version on my page.

On this time, I use the newest version of WYMEditor (WYMeditor 1.0). and theA�API documentation is hereA�

1. First of all, I need to install a jquery plugin to catch all command paste. So here we will useA� jquery-hotkeys.jsA�.A�Please install this jquery plugin first.

2. Write a plugin to catch all paste command hover the editor.


3. Call the new plugin onA�where you instance the WYMEditor


4. And finally, Custom the original WYMeditor paste plugin

That’s all the easy code that I have done for my task. I hope it can helps the other. And please leave a comment if you think this information is useful.

Thank you 🙂

Share di:   Email this to someone Share on Facebook Tweet about this on Twitter Share on Google+ Share on LinkedIn

Tinggalkan Komentar: