Provision for a custom onPaste code cleanup function
|Reported by:||moonpool99@…||Owned by:|
Can you please add a custom code cleanup function (callback) that would be executed onPaste being fired into the main editor text area.
It would be better if the cleanup could be done on the client side using the onPaste event before being displayed in the editor, so the user knows exactly what he/she is getting.
However, each implementing application's requirements for the cleaning algorithm would be different.
Thus, the requirements are:
- Provide a custom cleanup function callback that is
executed onPaste. The function can be an empty stub, that returns the raw html if not modified by the implementer. (maybe with a commented out regex example inside)
- Provide a config setting for turning this feature on
- Obviously this would only work for browsers that
support access to the clipboard (Gecko browsers (firefox) currently do not - but would be there for when it does!)