Expand Drop-Downs by default
You can automatically expand drop-downs and expandspots when your output opens. To do this, you need to make a small change to your ehlpdhtm.js file.
This method works with the following outputs:
Version / Output | AIR | CHM | FlashHelp | WebHelp |
---|---|---|---|---|
RoboHelp 10 | Yes | Yes | Yes | Yes |
RoboHelp 9 | Yes | Yes | Yes | Yes |
RoboHelp 8 | No | Yes | Yes | Yes |
RoboHelp 7 | No | Yes | Yes | Yes |
**Note**: To make the script work with an Air application, modify the seed file in your RoboHelp installation directory (%RH install dir%/RoboHTML/).
Setting up
For a CHM, you need to modify the ehlpdhtm.js of the project root. For WebHelp, you need to modify the ehlpdhtm.js file in the output folder. Follow these steps to make drop-downs and expandspots show by default:
- Find:
CCSSP.RegisterEventHandler( window, "onload", "TextPopupOnLoad(\"" + el.id +"\");" );
- Line 2357 for RoboHelp 7.
- Line 2498 for RoboHelp 8.
- Line 2497 for RoboHelp 9.
- Line 2650 for RoboHelp 10.
- Add a new line after the found line.
- Add the following code on the new line:
CCSSP.RegisterEventHandler( window, "onload", "TextPopup(\"" + el.id +"\");" );
- Save the script.