flutter_summernote
flutter_summernote copied to clipboard
Add property to make value cleanup optional
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)
(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)
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?