Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor start to get slow after inserting a single image / Limiting what can be pasted into editor #66

Open
DavidAlvarezDev opened this issue Jun 25, 2023 · 1 comment
Labels
feature New feature or request

Comments

@DavidAlvarezDev
Copy link

Hello!

I noticed that pictures and be directly pasted into the editor by the user. I am guessing that it is due to the size of the image taken by the phone's camera.

So, is there currently a way to regulate what gets entered into the editor or to see what is coming after the user hits 'Paste' but before it is applied to the NSAttributedString? I would possibly use this feature to compress the size of images before they are applied to the NSAttributedString.

Thanks!
David Alvarez,
info@davidalvarezdev.com

@danielsaidi
Copy link
Owner

Hi @DavidAlvarezDev

Great find! I've been considering adding a byte size limit to the image, but haven't had time yet.

Images are currently jpeg compressed, but I also think there should be a max byte size to avoid this situation.

@danielsaidi danielsaidi added the feature New feature or request label Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants