Allow comma-separated contentSelector

Created on 3 July 2024, 5 months ago

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

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States xenophyle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024