flutter_summernote icon indicating copy to clipboard operation
flutter_summernote copied to clipboard

Add property to make value cleanup optional

Open cfchris opened this issue 4 years ago • 0 comments

Just getting started on an email compose screen at work. First thing I noticed is that when I open the editor and pass in a user's signature (html), there is a bunch of extra line breaks.

(Signature in TinyMCE in our web app) signature

(HTML stored in the DB)

<p>Joe Demo<br>

Business Manager<br>

<a href="https://www.example.com">https://www.example.com</a><br>

m: 555-555-1212</p>

(Signature in FlutterSummernote) signature-in-summernote

Pretty sure this is because of the code that replaces line breaks with <br/> in setText method. (e.g. .replaceAll("\n", "<br/>"))

I would be happy to fork your repo and put up a PR with a new property that makes this optional. Is that something you would be interested in?

cfchris avatar Aug 27 '20 01:08 cfchris