The Numerated Headers Plugin
With this plugin the editor has the possibility to auto generate numeration in the header Tags
The main features are:
- Auto generate numeration
- Put it in a that will be prepended to the headline
- Auto remove the numeration if the editor deletes the header content
- Customizable: which headers should be affected, and in which surrounding container should the plugin process
So headers like:
Headline 1
Headline 2
Sub Headline 3
will be extended to
1 Headline 1
2 Headline 2
2.1 Sub Headline 3
1 Plugin Settings
- auto activate the feature of the plugin with numeratedactive: true (default)
- specify selector for affected headers
- specifiy Base Object, if you want the plugin to process in a specific container, or on the hole page (e.g. ‘body’)
Aloha.settings.numerated-headers: { numeratedactive: true, // default headingselector: 'h1, h2, h3, h4, h5, h6', // default: all baseobjectSelector: 'body' // if not set: Aloha.activeEditable }