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

Document the trix-action-invoke event #1189

Merged

Commits on Sep 30, 2024

  1. Document the trix-action-invoke event

    The [Trix Wiki][wiki] has a page documenting how to [customize the
    Toolbar element][toolbar]. Its a helpful, thorough document with a lot
    of great information, including how to invoke custom actions through the
    rendering elements with an `x`-prefixed `[data-trix-action]` attribute.
    
    Since this information is at the bottom of the wiki page, it isn't
    readily available from the `README.md`. The `trix-action-invoke` event
    that's dispatched is also omitted from the README's list of events.
    
    This commit promotes the contents of the wiki page into the `README`,
    documents the `trix-action-invoke` event, and adds missing test coverage
    that exercises the event.
    
    [wiki]: https://github.com/basecamp/trix/wiki/Configuration
    [toolbar]: https://github.com/basecamp/trix/wiki/Configuration#toolbar
    seanpdoyle committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    3363db1 View commit details
    Browse the repository at this point in the history