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

Customizing and extending the Formatting Toolbar #261

Open
bph opened this issue May 2, 2024 Discussed in #255 · 6 comments
Open

Customizing and extending the Formatting Toolbar #261

bph opened this issue May 2, 2024 Discussed in #255 · 6 comments

Comments

@bph
Copy link
Collaborator

bph commented May 2, 2024

Discussed in #255

Originally posted by magdalenapaciorek April 30, 2024
I'm proposing this topic (and volunteering myself as the author) because patterns similar to the one below are quite common in web design. I believe the formatting API is often overlooked, and developers who are unfamiliar with it might struggle to implement such designs.

block-formatting-toolbar

The initial plan for the article:

  • an overview of available formats with examples of how they can be used (e.g., adding an inline image to the citation in the Quote Block)
  • how to unregister default formats
  • how to add a basic format, similar to the one shown in the screenshot
  • how to implement more complex format controls, such as the one in the Language Format, where a click opens a popover with multiple options.
@magdalenapaciorek
Copy link

I'm happy to take this on.

@flexseth
Copy link

flexseth commented May 5, 2024

I'm happy to take this on.

+1 - happy to see this, hidden gem in the toolbar!!

@justintadlock
Copy link

@magdalenapaciorek - If you need any inspiration for examples, I have quite a few: https://github.com/x3p0-dev/x3p0-ideas/tree/9d2e309ab639b169709c53260dab8377c44d47ad/resources/js/format-library The abbreviation and span (custom class) formats are more advanced and include popups for additional attribute input.

@magdalenapaciorek
Copy link

@justintadlock great examples, thank you! :)

@bph
Copy link
Collaborator Author

bph commented Sep 3, 2024

@magdalenapaciorek just wanted to check in with you on the progress of your article and if there are any blockers, I can assist you with.

@magdalenapaciorek
Copy link

I'm getting close to the finish line and should have a draft ready to share in just a few days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

4 participants