How to stop users accidentally leaving a Wagtail edit page with JQuery

We had a request recently to implement a feature to stop users accidentally losing work while editing a page then forgetting to save. Especially now in Wagtail with features like StreamField, they can get pretty engrossed in their page layout design then forget to save, hit the 'Back' button my mistake etc. Although I believe …

Continue reading How to stop users accidentally leaving a Wagtail edit page with JQuery

Advertisements

Add some blockquote buttons to Wagtail CMS’ WYSIWYG Editor

Wagtail is an amazing Django based open source CMS, find out more at http://wagtail.io/ Wagtail's Editor is based on Hallo.js, we needed to add a normal blockquote button,and one with a class attribute for a pull out style quote. There are two steps to doing this, firstly override the whitelister's element rules (this stops certain …

Continue reading Add some blockquote buttons to Wagtail CMS’ WYSIWYG Editor