Update SimpleRichTextBlock and SimpleRichTextField to Draftail?
I believe SimpleRichTextBlock and SimpleRichTextField have been broken for a long time. Indeed, despite defining a small set of available elements, with Wagtail prior 1.12, the toolbar shows some additional elements:
In addition, it is now outdated:
- Wagtail 1.12 introduced RichText features
- Wagtail 2.0 uses
Draftailas a default editor
#7 make just make it work™, but given the confusing behaviour (see above) and that there is no tests, I woulnd't feel too confident upgrading the package on a production website which is using either SimpleRichTextBlock or SimpleRichTextField.
It looks like the expected behaviour was:
- Restrict the list of features to: paragraphs, bold, italic, unordered lists, ordered lists, links and document links
- Allow some attributes on links?
- Allow arbitrary html to be pasted in
Assuming we were update it to use the Draftail editor:
- Should be achievable with
features - Will need investigation
- I'm afraid it's not possible at the moment so it might be an issue
The branches wagtail-1.6 and fix/hallo_widget might be worth checking as they seems to work on the hallo editor.