Problem/Motivation

If the ToC is used on multiple page types, different content selectors may be needed for each, so you may want the value to be something like ".field-body,.field-rich-text".

The way ':header' is used in tocbot-init.js does not work with comma-separated selectors.

Steps to reproduce

Proposed resolution

This fix will apply ':header' differently.

Remaining tasks

User interface changes

The fix will be backwards compatible; no UI changes needed.

API changes

Data model changes

Issue fork tocbot-3458709

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

xenophyle created an issue. See original summary.

xenophyle’s picture

Status: Active » Needs work
xenophyle’s picture

Assigned: xenophyle » Unassigned
xenophyle’s picture

Status: Needs work » Needs review
svendecabooter’s picture

Thanks, that looks like a good solution.

svendecabooter’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.