Skip to main content
Known Participant
March 17, 2011
Answered

Wrap TOC text in RH8?

  • March 17, 2011
  • 1 reply
  • 1668 views

Hi guys,

I found an old post from 2006 that talks about some funky workaround to force topic titles to wrap in the TOC in webhelp;

http://forums.adobe.com/message/378004#378004

Not being a scripter myself, I was kind of hoping there was an easier way than messing with the js file as described in that post.  Any chance anyone knows a better way?

Chris

    This topic has been closed for replies.
    Correct answer Willam van Weelden

    Hi,

    I want to give it one last try. Please email me at contact [at] wvanweelden [dot] eu and I can send you a modified file that works in my projects.

    Greet,

    Willam


    I send the modified whthost.js file and that worked. The modified file can now be downloaded on my site via the link in the previous post.

    Greet,

    Willam

    1 reply

    Willam van Weelden
    Inspiring
    March 17, 2011

    Hi,

    Not that I can think of. But you can just igonre the discussion and follow the three steps in the last post. For the nobr-tags, just do a find and replace on "<nobr>" and "</nobr>" and replace them with nothing.

    Also note that the whthost.js is overwritten every time you generate your project. You best make a copy of the modified file and paste it in your output.

    Greet,

    Willam

    KoprivaAuthor
    Known Participant
    March 17, 2011

    wow - thanks William!

    Both those things are good to know!

    Chris

    KoprivaAuthor
    Known Participant
    March 20, 2011

    Wow - SOOOOO CLOSE!

    The topic wrapping is working great - but I have three quick tweaks I need to make:

    1. Can I get the wrapped text to left align under the first line?  You can see in the image below that the second line wraps under the topic image, rather than the first line.  I tried to remove the topic image, but the skin editor doesn't let me leave that option blank.  I thought I'd get sneaky and use a "white space" image - but that had the same wrapping issue.
    2. Can I wrap the BOOK text too, like the topic text?  (Is it elsewhere in the whthost file?)
    3. Less important - is the a way to bold or otherwise highlight the currently selected topic?

    This is what I'm trying to accomplish:

    This is where I'm at: