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
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
Comment #3
xenophyle commentedComment #4
xenophyle commentedComment #5
xenophyle commentedComment #6
svendecabooterThanks, that looks like a good solution.
Comment #7
svendecabooter