You are not logged in.
Pages: 1
I've updated ticket #349 (http://xinha.python-hosting.com/ticket/349): "paste support for firefox". I'm looking for other developers to take a look at and give me your comments.
This issue is about both paste support for firefox, and for filtering the pasted text. I'll reiterate some things here.
When you paste something in IE, it looks like "wordClean()" is run on the ENTIRE document. But in the code I have proposed to be added, a series of filters is applied to only the pasted text. I would suggest that if "killWordOnPaste" is on, then IE should popup a window as well so that we will only filter the pasted text. Also, I would suggest that we deprecate "killWordOnPaste" and use the "pasteFilters" instead.
I've used an array of filters because you may want to load more than one plugin to do paste filtering. For example, one filter might strip out HTML, and another filter puts in links for wiki keywords. Each plugin simply adds itself to the list and you dont need to create a custom plugin for every possible combination of filtering you want to do.
Comments?
Offline
Here is my proposed fix for dealing with the IE/Mozilla paste inconsistency:
1. In IE, behavior is normal if there are no paste filters (text is pasted directly into the editor).
2. If the user is using Mozilla or has paste filters turned on, they will be given the popup. When they "OK" the popup, the contents will be filtered and then inserted.
Please see the ticket for the new code. I have tested this on both IE and Firefox and it works.
Can I check it in?
Offline
Pages: 1