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

fix(trix): fix trix editor config loading #5928

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

welcoMattic
Copy link
Contributor

@welcoMattic welcoMattic commented Sep 18, 2023

Ref #5725

This PR change the listen event to boot TextEditorField. Before it listen on DOMLoadedContent. Now it listen on trix-before-initialize to be sure to handle the custom configuration and render properly a heading1 element with a custom tagName h2 for example.

If needed, I can add some tests to cover it.

@welcoMattic welcoMattic changed the title fix(trix): fix tric editor config loading fix(trix): fix trix editor config loading Sep 18, 2023
@welcoMattic welcoMattic force-pushed the fix-trix-editor-config branch from 47fc9a1 to 1f49189 Compare September 18, 2023 18:00
@javiereguiluz javiereguiluz added this to the 4.x milestone Sep 18, 2023
@javiereguiluz
Copy link
Collaborator

Mathieu, thanks a lot for fixing this and for the detailed explanation.

@javiereguiluz javiereguiluz merged commit 850496e into EasyCorp:4.x Sep 18, 2023
19 checks passed
@welcoMattic welcoMattic deleted the fix-trix-editor-config branch September 19, 2023 06:34
@welcoMattic
Copy link
Contributor Author

@javiereguiluz should I rebuild the JS, as it is versionned? Because now, master branche does not have the benefit of this fix as https://github.com/EasyCorp/EasyAdminBundle/blob/4.x/src/Resources/public/field-text-editor.47d6e6da.js has not changed.

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

Successfully merging this pull request may close these issues.

2 participants