wordpress-mobile / WordPress-Editor-iOS

⛔️ [DEPRECATED] A reusable iOS rich text editor component.
GNU General Public License v2.0
1.06k stars 210 forks source link

Fix for HTML mode switching hack #778

Closed bummytime closed 8 years ago

bummytime commented 8 years ago

Fixes #777

Updates the hack that was originally used to fix an issue where the format bar would not resize properly when the editor was rotated or resized. Now, instead of switching modes, we blur and refocus the field which updates the input accessory view and forces it to resize properly. Doing this allows media to upload without being interrupted.

Things to test:

/cc @SergioEstevao

SergioEstevao commented 8 years ago

One last question, do we really need to do the dance of resign/becomeFirstResponder on the source code view? In there we are using the standard UITextView and no hack for the acessoryInputView so should the rotation work by itself?

bummytime commented 8 years ago

@SergioEstevao Unfortunately, yes:

screen shot 2016-03-03 at 11 21 27 am
SergioEstevao commented 8 years ago

ok then so :shipit: