Title: TinyMCE Table of Contents
Author: Julen
Published: <strong>July 31, 2016</strong>
Last modified: July 31, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/table-of-contents-for-tinymce.svg)

# TinyMCE Table of Contents

 By [Julen](https://profiles.wordpress.org/julenpardo/)

[Download](https://downloads.wordpress.org/plugin/table-of-contents-for-tinymce.zip)

 * [Details](https://wordpress.org/plugins/table-of-contents-for-tinymce/#description)
 * [Reviews](https://wordpress.org/plugins/table-of-contents-for-tinymce/#reviews)
 *  [Installation](https://wordpress.org/plugins/table-of-contents-for-tinymce/#installation)
 * [Development](https://wordpress.org/plugins/table-of-contents-for-tinymce/#developers)

 [Support](https://wordpress.org/support/plugin/table-of-contents-for-tinymce/)

## Description

How much time have you spent every time you have created a table of contents manually?
Or you may even haven’t do it because of the pain that it would suppose to do it
manually?

With this plugin, you will be able to generate tables of contents for your posts
in a completely easy, automated and personalizable way. It automatically looks for
every <h*> tag, to generate the table entries for them.

Features:

 * Configuration of the depth level of the table.
 * Configuration of the indentation of the levels of the table.
 * Option to add to the elements of the table link to each section.

## Screenshots

[⌊TinyMCE Table of Contents in the editor⌉⌊TinyMCE Table of Contents in the editor⌉[

TinyMCE Table of Contents in the editor

[⌊Options for creating table of contents⌉⌊Options for creating table of contents⌉[

Options for creating table of contents

[⌊Generated table of contents⌉⌊Generated table of contents⌉[

Generated table of contents

## Installation

If you have ever installed a WordPress plugin, then installation will be pretty 
easy:

 1. Download the TinyMCE Table of Contents plugin and extract the files.
 2. You should have now a directory named ‘tinymce-table-of-contents’ with some files
    in its root. Copy this directory into ‘/path/to/wordpress/wp-contents/plugins’.
 3. Enable the plugin from WordPress (Plugins > Installed Plugins >Activate option,
    for TinyMCE Table of Contents).
 4. A new element should now appear in TinyMCE editor. Just click it and select the
    options you want for your table of contents.

## FAQ

  How are links added? If my titles already have an id attribute, will they be overwritten?

The links are added by adding an id attribute to each title appearing in the table
of contents, but only if it doesn’t have it; original id attributes are not overwritten,
not to break any other possible reference.

The format of the generated id is “section_x”, “section_x_y”, etc. Then, the link
is just a hyperlink to the “id” (e.g., “< a href=’#section_x’>Section X”).

  How is the indentation added?

The indentation of each level of the table is just a set of `&nbsp;`, styled with`
white-space: pre;`, to make the browser preserve them.

  How do I notify about a bug/feature request?

Open an issue in the [bug tracker](https://github.com/julenpardo/tinymce-table-of-contents/issues),
giving as much as information possible:

 * For bugs: steps to reproduce; WordPress version.
 * For features: a detailed description of what is wanted to achieve.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“TinyMCE Table of Contents” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Julen ](https://profiles.wordpress.org/julenpardo/)

[Translate “TinyMCE Table of Contents” into your language.](https://translate.wordpress.org/projects/wp-plugins/table-of-contents-for-tinymce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/table-of-contents-for-tinymce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/table-of-contents-for-tinymce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/table-of-contents-for-tinymce/)
by [RSS](https://plugins.trac.wordpress.org/log/table-of-contents-for-tinymce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

First release.

## Meta

 *  Version **1.0**
 *  Last updated **10 years ago**
 *  Active installations **50+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **4.5.33**
 * Tags
 * [index](https://wordpress.org/plugins/tags/index/)[table of contents](https://wordpress.org/plugins/tags/table-of-contents/)
   [tinyMCE](https://wordpress.org/plugins/tags/tinymce/)
 *  [Advanced View](https://wordpress.org/plugins/table-of-contents-for-tinymce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/table-of-contents-for-tinymce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/table-of-contents-for-tinymce/reviews/)

## Contributors

 *   [ Julen ](https://profiles.wordpress.org/julenpardo/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/table-of-contents-for-tinymce/)