Expand dropdowns and expandspots by default

You can automatically expand dropdowns and expandspots when your output opens. To do this, you need to make a small change to your ehlpdhtm.js file.

Compatibility

This script works with the following outputs:
Version / Output AIR CHM FlashHelp WebHelp
RoboHelp 9 Yes1 Yes Yes Yes
RoboHelp 8 No Yes Yes Yes
RoboHelp 7 No Yes Yes Yes

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 dropdowns and expandspots show by default:

  1. Find:

    CCSSP.RegisterEventHandler( window, "onload", "TextPopupOnLoad(\"" + el.id +"\");" );
    • Line 2357 for RoboHelp 7.
    • Line 2498 for RoboHelp 8.
    • Line 2497 for RoboHelp 9.
  2. Add a new line after the found line.
  3. Add the following code on the new line:
    CCSSP.RegisterEventHandler( window, "onload", "TextPopup(\"" + el.id +"\");" );
  4. Save the script.
  • 1. To make the script work with an Air application, modify the seed file in your RoboHelp installation directory.

Tags: