Skip to main content
Inspiring
Aug 23, 2025 5:53 PM UTC
Question

FM 2020 HTML5 Publisher: Setting Expanded TOC level

Hello everyone,

 

AFAIK, the FM HTML5 Publisher doesn't include any option that controls which TOC level will appear expanded/collapsed by default when opening the index file. My guess is that this is controlled by some Javascript file. Does anyone know where this setting is defined/implemented?

 

Thank you in advance!

 

    4 replies

    Jeff_Coatsworth
    Community Expert
    Community Expert
    Aug 25, 2025 11:53 AM UTC

    Think you'll need to put your JS programmer hat on for that one.

    Translate
    rombanks
    Inspiring
    Aug 25, 2025 11:57 AM UTC

    Yes, I was actually looking for the JS file responsible for this behavior, but couldn't spot it in the output yet.

    Translate
    Jeff_Coatsworth
    Community Expert
    Community Expert
    Aug 25, 2025 11:32 AM UTC

    So you're wanting the TOC to be expanded when you open the index.htm file?

    Translate
    rombanks
    Inspiring
    Aug 25, 2025 11:36 AM UTC

    Hi Jeff,

    Thank you for your response.

    Yes, just the 1st-level heading to be expanded.

    Translate