You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#99396 Table of contents plugin

Posted in ‘Suggestions & Feature Requests’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by joonchen on Wednesday, 08 June 2022 16:46 BST

Thorbavaria
Hi Ryan,
since the articles on our website are getting longer and longer, I've been searching for an equivalent of the WP Table of Contents plugin.
I found some like Quick-Index from RegularLabs but also a nice plugin for the TinyMCE:
Editor - Article - Table of Contents
Is there a possibilty to enhance JCE (Pro) the same way?

Thanks,
Björn

Ryan
but also a nice plugin for the TinyMCE: Editor - Article - Table of Contents
This plugin will work with JCE. The button will be visible below the editor, not in the editor toolbar. https://cdn.joomlacontenteditor.net/tmp/99396-table-of-contents-plugin.jpg There is however one issue with it, that is easily fixed. After installing and enabling the plugin, edit plugins/editors-xtd/articletoc/articletoc.php and change line 36 from:

$button->onclick='createTOC(\''.$name.'\', \''.$headerText.'\');';
to

$button->onclick='createTOC(\''.$name.'\', \''.$headerText.'\');return false;';

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

jcata
Hi

it's works perfect with this fix ;-), thanks a lot

joonchen
I would like to second this feature. It would be great to have a "TOC" button in the JCE Pro edition, without having to mess with file editing (I'm not sure if you have to re-edit the file after certain Joomla updates). I found this here: https://github.com/widgetfactory/jce-editor-toc.

Ryan
I found this here: https://github.com/widgetfactory/jce-editor-toc.


Yes that's new. Try it out.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

joonchen
That plugin works flawlessly. Two thumbs up!