wordpress-mobile / WordPress-Editor-iOS

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

Unexpected cursor loss leads to media being added at the top of the post #871

Open rachelmcr opened 7 years ago

rachelmcr commented 7 years ago

Expected behavior

I expect the cursor to always indicate where I am in the post, so that any changes I make occur at that point in the post.

Actual behavior

In some cases, the cursor can be lost. That prevents me from adding text to the post (somewhat expected if I can't find the cursor) but more importantly I can still add media — and it's added to the top of the post.

Here's an example flow:

  1. Create a new post
  2. Add text and images to the post
  3. Save the post and exit the editor
  4. Open the post again, and note that the cursor is in the title field
  5. Tap on an image (with the intent to add another image after it)
  6. Note that at this point, the cursor disappears
  7. Tap the add media icon and add another image

Result: The image is added to the top of the post, instead of around the image you just tapped on.

Tested on iPhone 6, iOS 10.1.1, WPiOS 6.8.0.20161129

Reported here: https://twitter.com/LarryChiang/status/803313744084369408

JiangYuf commented 7 years ago

me too, please fix quickly