Skip to content

Conversation

@ayushn21
Copy link

I've added an additional config option to restrict the file input dialog to specific mime types.

Any file could still be potentially drag n dropped into the editor, but I believe the best place to deal with that is still the trix-file-accept event. The purpose of this PR is just to add a bit of UX polish to grey out disallowed files in the input dialog.

I haven't added any tests as I'm not sure if this functionality can be tested. I couldn't find a way to inspect the file input dialog in tests.

I'm obviously open to any suggestions or comments regarding implementation, design, testing or even necessity :)

Base automatically changed from master to main January 20, 2021 18:30
@stale
Copy link

stale bot commented Jun 9, 2021

This pull request has been automatically marked as stale after 90 days of inactivity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jun 9, 2021
@ayushn21
Copy link
Author

ayushn21 commented Jun 9, 2021

keep alive!

@stale stale bot removed the stale label Jun 9, 2021
@Livijn
Copy link

Livijn commented Oct 4, 2021

This seems fairly straight forward to merge? I would need this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants