feat: upgrade to Wagtail 7.x support#304
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 |
|
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. |
|
@therefromhere I tried to clean up the changelog with a force push, somehow it got closed. Feel free to reopen. |
Thanks, though note I'm not a puput maintainer, just a user :) |
|
BTW, it closed the PR because the PR was your master vs puput and when you force pushed, they aligned (so no commits in the PR). Can you push a branch with the commit this PR was using ( hoheinzollern@556fd96 ) and update the PR to point at that? (i.e. basically revert the PR back to the state it was when you first pushed it). |
|
Uh, I see, indeed I need to make a new PR pointing at a different branch than master. I'll do it. |
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.