tneotia / html-editor-enhanced

A Flutter package that provides a WYSIWYG editor backed by flutter_inappwebview and the Summernote library.
https://pub.dev/packages/html_editor_enhanced
MIT License
272 stars 324 forks source link

[FEATURE] how to clean styling if user copy some text from website and paste it to html editor ? #176

Open bwrelawan opened 2 years ago

bwrelawan commented 2 years ago

Hello! i like your plugin, but i got a problem. If user copy text or content from website then paste it to html editor, styles come too. How to cleaning up the styling if user copy from website ? thanks!!

tneotia commented 2 years ago

I don't know if this would be possible on the package side, you can look into the Dart HTML parser library, and using that parse the HTML and remove all the styling elements. I will see if there is anything I can do with summernote or JS and let you know.