Table of Contents
This plugin generates a table of contents.
- It simply crawls the content for Heading-Tags (<h1>, ... ,<h6>)
- Creates formated Table of Contents with <p> and margins for indent. (see screenshot 2)
- generates for each heading id- and name-attributes on h-tag
- deletes automatically already generated tocs inside the document.
The Plugin uses some code from http://ckeditor.com/forums/CKEditor-3.x/CKEditor-Plugin-Table-Contents. The Plugin is localized in german and english.
## Installation
1. Download the plugin from here
2. Extract (decompress) the downloaded file into the plugins folder of your CKEditor installation.
Example: http://example.com/ckeditor/plugins/toc
3. Enable the plugin by using the extraPlugins configuration setting.
Example: CKEDITOR.config.extraPlugins = "toc";
Make sure, "div" is included into the format_tags configuration setting.
Example: CKEDITOR.config.format_tags = 'div';
4. The "Links"-Toolbar now contains the toc-button
Releases
Plugin versions | CKEditor versions | |||
---|---|---|---|---|
4.25 | 4.24 | 4.23 | ||
Version: 3.1 |
||||
killed some minor bugs |