feat: upgrade to Wagtail 7.x support#304
Closed
hoheinzollern wants to merge 0 commit intoAPSL:masterfrom
Closed
Conversation
|
Nice one! I've tested that vs Wagtail 7.3 and it's working fine. Only note vs your settings above is I think "WIDGET" is a required param now, this works for me: WAGTAILADMIN_RICH_TEXT_EDITORS = {
"default": {
"WIDGET": "wagtail.admin.rich_text.DraftailRichTextArea",
"OPTIONS": {
"features": [
"h2",
"h3",
"h4",
"bold",
"italic",
"ol",
"ul",
"hr",
"link",
"document-link",
"image",
"embed",
"blockquote",
"code",
]
},
}
}It'd be great to get this merged since Wagtail 6.3 LTS will be out of support soon (https://github.com/wagtail/wagtail/wiki/Release-schedule ). Also ref |
Author
|
Great to hear! I've also taken care of updating the dependent wagtail-markdown package, as I was getting a warning about the outdated dependencies: Ideally, if doing a release, it would be helpful to have that merged first and update the dependencies. |
Author
|
@therefromhere I tried to clean up the changelog with a force push, somehow it got closed. Feel free to reopen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey, I have a Puput/Wagtail installation that I needed to update, and took the chance to update Puput's dependencies to the latest versions and check that it works. The interesting bit is that the wagtail_hooks are no longer needed since Wagtail 5.
Rationale for wagtail_hooks.py removal:
The Draftail rich text editor was replaced in Wagtail 5.0+. The blockquote and code features previously added via hooks are now built-in to Wagtail and can be enabled via WAGTAILADMIN_RICH_TEXT_EDITORS configuration.
See Wagtail documentation:
Users can enable these features in settings.py:
This change maintains all functionality while aligning with modern Wagtail best practices and removing deprecated code.