id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 856,Provision for a custom onPaste code cleanup function,moonpool99@…,,"Can you please add a custom code cleanup function (callback) that would be executed onPaste being fired into the main editor text area. Reason: Many implementations of FCKEditor in an application would require end-users to create their own web pages (CMS). Consequently, if a end-user pastes in HTML from a 3rd party web site, the code would need to be cleaned in some way before being saved in a content repository (on the server) - for example to remove javascript onclick handlers or form elements. While this is is easy to do on the server side, the saved html would not be what the end-user had pasted into the editor, and thus confuse the end user. 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: 1. 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) 2. Provide a config setting for turning this feature on and off 3. 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!) ---- Moved from SF:[[BR]] http://sourceforge.net/tracker/index.php?func=detail&aid=1403554&group_id=75348&atid=543656",New Feature,closed,Normal,,General,,fixed,SF,Frederico Caldeira Knabben Alfonso Martínez de Lizarrondo