Open cameronvoell opened 4 years ago
i found the source of the bug, InlineFormatter L:232, for some reason every time that we remove some format its also removing all the ForegroundColorSpan, i'll remove this on my PR for bg color https://github.com/wordpress-mobile/AztecEditor-Android/pull/911
Expected
Toggling a format on and off should not change the color attribute of text in the visual editor or html editor.
Observed
Toggling a format on and off removes text color alterations in the visual editor. In some cases the color attribute still exists in the html, toggling html mode on and off brings the color back in the visual editor. In other cases when toggling a format, the color is removed from the html.
Video:
Reproduced
Case 1 - Toggling format does not change html, switching html mode then back to visual brings color back:
Case 2- Toggling format removes color attibute from html, toggling to html mode and back to visual does not bring the color back.
Tested
[Samsung Galaxy Tab S3] on [Android 9] with [AztecEditor-Android v1.3.43]