[Composer] Style lost after spellcheck correction
Moving this from a downstream bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1672846
Using Edit->Check Spelling (F7) to replace misspelled words in HTML format which have set style like color and such resets the style to the default values (like text to black). Using the replacement of the misspelled word in the context menu doesn't exhibit this issue.
Steps to Reproduce:
- start a new email, in HTML format
- put some misspelling in the message body
- change colour
- put in some more misspelling
- use F7 and correct the word
- corrected word now black
Actual results: Word colour changes to black
Expected results: Format should stay the same
Additional info: Fails for other features like italics or size so I am sure the problem is general as they all revert to the default.
If you change by using the HEADING for example the colour/size survives and it does lock the colour on following lines.