Does anyone know if it is possible to define which elements are removed by the Paste as Plain Text plugin.
The Removeformat plugin has the CKEDITOR.config.removeFormatTags parameter which allows the definition of a list of elements that will be removed from the selected text when used.
Is there a similar config setting for the Paste as Plain Text? I have a user that wishes to paste text from a pdf document or web page into the editor but <br/> elements are not removed.
ideally the removed <br> should be replaced with a space as I have noticed that defining <br> for RemoveFormat causes text to run together.
Thanks
Paul
The Removeformat plugin has the CKEDITOR.config.removeFormatTags parameter which allows the definition of a list of elements that will be removed from the selected text when used.
Is there a similar config setting for the Paste as Plain Text? I have a user that wishes to paste text from a pdf document or web page into the editor but <br/> elements are not removed.
ideally the removed <br> should be replaced with a space as I have noticed that defining <br> for RemoveFormat causes text to run together.
Thanks
Paul
Re: Paste as Plain Text plugin
You can add a listener for the "paste" event. It will clean up your HTML the way you want.
http://docs.cksource.com/ckeditor_api/s ... vent:paste
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: Paste as Plain Text plugin
That looks like what I need.