forem / ForemWebView-ios

Forem core interface SDK
GNU General Public License v3.0
22 stars 7 forks source link

Editor's uploaded image copy button doesn't work #26

Closed rhymes closed 3 years ago

rhymes commented 3 years ago

Describe the bug

After an image is uploaded successfully, the markdown is injected in a readonly textbox. On its side there's a copy button, which is supposed to copy its content to the clipboard and allow pasting the text elsewhere (the editor textarea).

Although the functionality works from Safari iOS, it doesn't work from the Forem iOS app.

To Reproduce Steps to reproduce the behavior:

  1. Open the Forem iOS app on DEV or any other Forem
  2. Click on upload an image and upload one
  3. Wait for the upload to finish
  4. Tap the "Copy" button, nothing happens

Expected behavior

For the "Copy" button to switch to "Copied" and for the text to be added to the clipboard

Environment (please complete the following information):

fdocr commented 3 years ago

Thank you for the report @rhymes!

I wasn't able to replicate in the DEV iOS app or Safari, so this leads me to believe the problem was recently introduced here because DEV iOS isn't on the latests release of the framework, but Forem iOS is. I'll investigate a bit more and circle back here with results or a fix soon.