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

Define TrixToolbarElement.editorElements #1122

Closed
wants to merge 1 commit into from
Closed

Define TrixToolbarElement.editorElements #1122

wants to merge 1 commit into from

Conversation

seanpdoyle
Copy link
Contributor

Define properties for accessing all <trix-editor> elements that declare a relationship with a <trix-toolbar> element through a [toolbar]-[id] attribute relationship.

Since multiple <trix-editor> elements can reference a <trix-toolbar> element by name, this commit introduces both an .editorElements and .editorElement properties.

The .editorElement property returns the first item in .editorElements, if there are any.

@seanpdoyle seanpdoyle marked this pull request as ready for review January 30, 2024 03:08
Define properties for accessing all `<trix-editor>` elements that
declare a relationship with a `<trix-toolbar>` element through a
`[toolbar]`-`[id]` attribute relationship.

Since multiple `<trix-editor>` elements can reference a `<trix-toolbar>`
element by name, this commit introduces both an `.editorElements` and
`.editorElement` properties.

The `.editorElement` property returns the first item in
`.editorElements`, if there are any.
@seanpdoyle seanpdoyle closed this by deleting the head repository Jan 30, 2024
@seanpdoyle seanpdoyle mentioned this pull request Jan 30, 2024
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.

1 participant