Closed theck13 closed 7 years ago
I found some weird behavior:
That's expected. It's picking up the Heading 6 format from the previous line. It's related to and should be addressed in the new block formats issue.
The previous issue was fixed, but now when I tap on a regular text, apply one of the headings and then tap on the heading menu again, the paragraph style is incorrectly selected.
Were you selecting text containing any other formatting? I can't reproduce that behavior when applying a heading to completely unformatted text. The heading menu must be parsing the inline formatting after the heading formatting and the paragraph item is checked consequently.
It happens when try it with "Underline" or "Italic" of the demo text.
That should be fixed with 0f826f12ef6644ecaf3c3297c4724329b5f1e168.
The heading menu still selects the wrong thing:
:shipit:
Fix
Restores heading menu behavior prior to paragraph spans merge as described in https://github.com/wordpress-mobile/AztecEditor-Android/issues/297. Be aware of the new block formats issue when testing these changes which includes the Reproduced > Menu section in https://github.com/wordpress-mobile/AztecEditor-Android/issues/297. These changes do not address that part of the initial issue https://github.com/wordpress-mobile/AztecEditor-Android/issues/297.
Note
This is blocking the
pre
tag (i.e. preformat) issue https://github.com/wordpress-mobile/AztecEditor-Android/issues/164.Test
Heading
Paragraph