Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Restore Missing fileInputId Property and Add acceptedFileTypes Property#1089

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
chadrschroeder wants to merge4 commits intobasecamp:main
base:main
Choose a base branch
Loading
fromchadrschroeder:issue_1088

Conversation

@chadrschroeder
Copy link

Fixes#1088 by restoring the missingfileInputId property.

Also adds anacceptedFileTypes property, similar to what was proposed in#789. That PR was opened over 3 years ago back when this code was still using CoffeeScript. I've implemented a similar change here in JavaScript, but I set this up as a simple string attribute value instead of an array. Let me know if you'd rather not have this option, but this is why I was trying to override thepickFiles function in the first place.

Copy link
Contributor

@afcapelafcapel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There are a couple of styling issues, but the changes make sense. If you can fix them I'll merge.

.DS_Store Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can you remove this file, please?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Removed. I've also updated.gitignore to help avoid this. I hope this is OK. I see it's included there inKamal.

constinput={
level2Enabled:true,
fileInputId:`trix-file-input-${Date.now().toString(16)}`,
acceptedFileTypes:'*',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We prefer double quotes for strings. The linter should flag this.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fixed.

@chadrschroeder
Copy link
Author

Thanks for the quick review before. Let me know if there's anything else you want me to update here. It looks like the most recent tests failed but in a way that is unrelated to my changes.

@ghiculescu
Copy link

Is this okay to merge@afcapel ?

@afcapel
Copy link
Contributor

@ghiculescu I afraid I don’t maintain Trix anymore, so that ‘s up to the new maintainers.

ghiculescu reacted with thumbs up emojighiculescu reacted with heart emoji

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

Reviewers

@afcapelafcapelAwaiting requested review from afcapel

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Clicking to Attach a File Deletes First Element on Page with ID of "undefined"

3 participants

@chadrschroeder@ghiculescu@afcapel

[8]ページ先頭

©2009-2025 Movatter.jp