Skip to main content
Yoriknme
Participant
November 4, 2017
Answered

Open in Browser

  • November 4, 2017
  • 2 replies
  • 1456 views

I began with Dreamweaver 2017 a few days ago, and I have a question.

Preview in Primary Browser.  This works well, but I get a preset title: 'Real Time Preview.'

By right-clicking on a file, from the list of files, I get the un-prepared title  I am looking for.   I cannot find this option anywhere in Keyboard Shortcuts, so it's not possible to use it.  And on my Mac I can't get opt-F12 to work in any case.

So where can I find 'Open in Browser' so I can assign keys to it.

Thanks

    This topic has been closed for replies.
    Correct answer Jon Fritz

    Unfortunately, Adobe hasn't given us the ability to set F12 to Open In Browser (the old Preview in Browser) using DW's interface, but you can still remap it, if you're comfortable with making a very small change to one of your program files...

    1. Close DW and go to...

        Windows: C: > Program Files > Adobe > Adobe Dreamweaver CC 2017 > configuration > Menus > MM

        Mac: Applications > Adobe Dreamweaver CC 2017 > configuration > Menus > MM

        (I think, I don't have a Mac to test)

    2. Open the file "PIB_Dynamic.js"

    2a. As always, make a backup in case something goes sideways. Add _old at the end of the back-up's  file name.

    3. Search for the text "dw.browseDocument". There are 3 spots with that code, but the first two are just comments. The right one should be on or about line 433, and change the text "isPIB" to "true"

    The finished line of code will look like...

    dw.browseDocument(dw.getDocumentPath('document'),theBrowser, "-1"/*help argument*/, false /*use temp doc*/, true);

    4. Save the file to your desktop

    5. Drag the file into the original location from Step 1. You will be prompted for your Admin credentials in order to make the copy/replacement

    From there on out, whatever you have set as your Primary browser will open "the old way" with F12.

    2 replies

    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    November 6, 2017

    Unfortunately, Adobe hasn't given us the ability to set F12 to Open In Browser (the old Preview in Browser) using DW's interface, but you can still remap it, if you're comfortable with making a very small change to one of your program files...

    1. Close DW and go to...

        Windows: C: > Program Files > Adobe > Adobe Dreamweaver CC 2017 > configuration > Menus > MM

        Mac: Applications > Adobe Dreamweaver CC 2017 > configuration > Menus > MM

        (I think, I don't have a Mac to test)

    2. Open the file "PIB_Dynamic.js"

    2a. As always, make a backup in case something goes sideways. Add _old at the end of the back-up's  file name.

    3. Search for the text "dw.browseDocument". There are 3 spots with that code, but the first two are just comments. The right one should be on or about line 433, and change the text "isPIB" to "true"

    The finished line of code will look like...

    dw.browseDocument(dw.getDocumentPath('document'),theBrowser, "-1"/*help argument*/, false /*use temp doc*/, true);

    4. Save the file to your desktop

    5. Drag the file into the original location from Step 1. You will be prompted for your Admin credentials in order to make the copy/replacement

    From there on out, whatever you have set as your Primary browser will open "the old way" with F12.

    Yoriknme
    YoriknmeAuthor
    Participant
    November 6, 2017

    Wow, Jon, that seems to work! Thanks so much- you’re a genius!

    Thanks again,

    Donald Brady

    Nancy OShea
    Community Expert
    Community Expert
    November 4, 2017

    F12 opens your page in Real-Time Preview.

    If you want to open in browser without RTP, use Right-Click instead of F12.

    Nancy O'Shea— Product User & Community Expert