You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Highlight some text that has a color attribute but is NOT italicized
Click italic button to italicize
Click italic button again and notice italics are gone, and the color is not showing either
Click HTML mode, notice the color attribute still exists for this element
Return to visual mode and notice the color has returned
Case 2- Toggling format removes color attibute from html, toggling to html mode and back to visual does not bring the color back.
Highlight some text that has a color attribute AND IS italicized (not in a list)
Click italic button and notice italics are gone, and the color is not showing either
Click HTML mode, notice the color attribute is gone
Return to visual mode and verify that color does not return
Tested
[Samsung Galaxy Tab S3] on [Android 9] with [AztecEditor-Android v1.3.43]
The text was updated successfully, but these errors were encountered:
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 #911
felipevaladares
added a commit
to felipevaladares/AztecEditor-Android
that referenced
this issue
Jun 30, 2020
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]
The text was updated successfully, but these errors were encountered: