mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
Update rich text features docs for Draftail + Hallo support
This commit is contained in:
parent
6c7d0abad7
commit
9284615d94
@ -88,8 +88,8 @@ The feature identifiers provided on a default Wagtail installation are as follow
|
||||
|
||||
Adding new features to this list is generally a two step process:
|
||||
|
||||
* Create a plugin that extends the editor with a new toolbar button for adding a particular HTML element
|
||||
* Add that HTML element to the whitelist of elements that are permitted in rich text output
|
||||
* Create a plugin that extends the editor with a new toolbar button or other control(s) to manage the rich text formatting of the feature.
|
||||
* Create conversion rules to define how content from the editor should be filtered or transformed before storage, and front-end HTML output.
|
||||
|
||||
Both of these steps are performed through the ``register_rich_text_features`` hook (see :ref:`admin_hooks`). The hook function is triggered on startup, and receives a *feature registry* object as its argument; this object keeps track of the behaviours associated with each feature identifier.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user