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

[RFR] Add rich text input toolbar buttons #7816

Merged
merged 5 commits into from
Jun 17, 2022

Conversation

bladx
Copy link

@bladx bladx commented Jun 11, 2022

As discussed in #7806, here is the PR to have both ColorButtons (including font and highlight color) and ImageButtons components for RichTextInput toolbar.

This is my first PR ever on any non-private repository, so please feel free to make me some feedbacks (english or french).

Plus, I noticed that the translation of all buttons (existing ones as well) do not exist, so even in french the titles are in english (default).

@bladx
Copy link
Author

bladx commented Jun 11, 2022

I also just noticed that the toolbar is not responsive (missing the flex-wrap so the screen has an horizontal scroll bar).

Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

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

Otherwise this is a really great contribution, thanks! 🙏

packages/ra-input-rich-text/src/buttons/ColorButtons.tsx Outdated Show resolved Hide resolved
packages/ra-input-rich-text/src/buttons/ColorButtons.tsx Outdated Show resolved Hide resolved
@slax57 slax57 added the RFR Ready For Review label Jun 14, 2022
@slax57 slax57 added this to the 4.2.0 milestone Jun 14, 2022
@bladx
Copy link
Author

bladx commented Jun 14, 2022

Thanks for the kind feedback :)

@djhi
Copy link
Collaborator

djhi commented Jun 15, 2022

Plus, I noticed that the translation of all buttons (existing ones as well) do not exist, so even in french the titles are in english (default).

Yes, thank you for this reminder. We're going to include english and french translations directly inside this package.

Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

packages/ra-input-rich-text/src/buttons/ColorButtons.tsx Outdated Show resolved Hide resolved
@fzaninotto
Copy link
Member

Could you please fix the linter warnings?

@vercel vercel bot temporarily deployed to Preview – react-admin June 16, 2022 18:10 Inactive
@bladx
Copy link
Author

bladx commented Jun 16, 2022

Could you please fix the linter warnings?

Sorry I introduced them in my last code review commit and did not pay attention.
This should be alright now.

@fzaninotto fzaninotto merged commit af0de73 into marmelab:next Jun 17, 2022
@fzaninotto
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants