wagtail/wagtail-ai

Update Draftail integration

zerolab opened this issue · 3 comments

wagtail-ai currently monkey-patches initEditor to add the buttons and functionality
Wagtail 5.1 (and wagtail/wagtail#10547 specifically) adds official APIs for Draftail controls, decorators and plugins

Anyone who's worked with Wagtail admin/Draftail could probably make improvements there and start using the latest API improvements.

As mentioned in #14, I think we can drop support for <Wagtail 5.1 and avoid keeping this monkeypatch in the codebase.

Done in #31