-
Notifications
You must be signed in to change notification settings - Fork 128
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
Detect data urls and display an alert #178
Conversation
Thanks for opening this pull request! |
@jywarren Take a look and review when you have time, please. Let me know if there is anything to change in this piece of code. |
Hi, i'm sorry, i merged a commit by @dependabot and caused a conflict. Do you think you could resolve it? I'm also wondering if we could add a test for this behavior. We could paste a small dataurl into the codebase and then check for the alert to be shown. We could do something pretty simple -- see this for entering something into the rich text module textarea:
then we could do What do you think? |
But also I believe we need to run |
Thanks @okonek ! This project is a bit neglected so your help here is MUCH appreciated! Several of the other sub-libraries of PL have a lead developer, but not this one! It's too bad because there are some really cool features which we could build out, like this one on autocompleting tagnames, usernames, and such with the |
@jywarren No, problem I can write the tests, but how am I supposed to resolve the conflict? Should I rebase or just remove this fork and start another one? What did you mean by that? Thanks. |
@jywarren I'm very sorry, but I was sitting on this for like two or three hours and couldn't figure out the way to do the tests for this, because setting the textarea value with code doesn't trigger the |
Approved! I think there's a way to trigger the event manually... Maybe we do this elsewhere in the tests? |
Yes, I tried $().trigger("keydown"), but it did not succeed, also I searched in the other tests for some similar code, but I did not find any. |
Congrats on merging your first pull request! 🙌🎉⚡️ |
fixes #175
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
fixes #0000
-style reference to original issue #@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays.
Thanks!