Introduction

This module enables the Table of Contents plugin from CKEditor.com in your WYSIWYG. This plugin adds a simple Table of Contents widget which crawls the content for Heading-Tags (<h1>, ... ,<h6>) and adds Anchor tags to headings.

Requirements

CKEditor Module (Core)

Installation

  1. Download the plugin from http://ckeditor.com/addon/contents.
  2. Place the plugin in the root libraries folder (/libraries).
  3. Enable CKEditor Table of Contents in the Drupal admin.
  4. Configure your WYSIWYG toolbar to include the button.

With composer add the following to your repositories then composer require ckeditor/contents

"ckeditor.contents": {
  "type": "package",
  "package": {
    "name": "ckeditor/contents",
    "version": "0.11",
    "type": "drupal-library",
    "extra": {
      "installer-name": "contents"
    },
    "dist": {
      "url": "https://download.ckeditor.com/contents/releases/contents_0.11.zip",
      "type": "zip"
    }
  }
},

This project only handles the bridge between Table of Contents and Drupal. For support for the Table of Contents library feel free to ask at their project page.

Supporting organizations: 
Initial development

Project information

Releases