personalizedrefrigerator / js-draw

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a freehand drawing library for JavaScript and TypeScript.
https://personalizedrefrigerator.github.io/js-draw/typedoc/
MIT License
79 stars 8 forks source link

Bug: Insert image tool doesn't work in iOS lockdown mode #54

Closed personalizedrefrigerator closed 9 months ago

personalizedrefrigerator commented 9 months ago

Describe the issue

Lockdown mode in iOS disables FileReader, which is used by js-draw to convert images to a base64 URL.

Steps to reproduce the issue

  1. Enable lockdown mode
  2. Open the image menu
  3. Choose and try to insert an image

Expected behavior

Should be able to insert images.

Observed behavior

No submit button is visible, an error message is displayed about FileReader being undefined.

Version information

1.13.1

Platform

Safari on iOS 17.1.1

Logs

N/A

Additional information

No response

personalizedrefrigerator commented 9 months ago

Fixed by 564d80a27b3aa25a4d9493c3d8790d6004f85db0