newamericafoundation / newamerica-cms

CMS for New America
https://www.newamerica.org/
5 stars 5 forks source link

Remove undo redo features #1807

Closed chigby closed 1 year ago

chigby commented 1 year ago

"Undo" and "redo" are not valid features for wagtail rich text editors (maybe at one time they were?) and it's causing this warning whenever the site loads:

/usr/local/lib/python3.10/site-packages/wagtail/admin/rich_text/editors/draftail/__init__.py:38: RuntimeWarning: Draftail received an unknown feature 'undo'.
  warnings.warn(
/usr/local/lib/python3.10/site-packages/wagtail/admin/rich_text/editors/draftail/__init__.py:38: RuntimeWarning: Draftail received an unknown feature 'redo'.
  warnings.warn(

This pull request removes them and the warnings no longer appear.