Previewing in Microsoft Edge Browser

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Previewing in Microsoft Edge Browser

Postby pmk65 » Wed Apr 19, 2017 6:50 pm

Im trying to setup Microsoft Edge as a Preview > Browser. Microsoft Edge is an "Application" and has to be started in a different way than "normal" programs.

Entering the code below in a DOS prompt will open Microsoft Edge with the Blumentals page
Code: Select all
start microsoft-edge:https://www.blumentals.net/


But this won't do anything as Edge doesn't allow opening of local files from prompt. (MS Retardo Software!)
Code: Select all
start microsoft-edge:file:///c:/test/index.html


Examining the registry under key; "HKEY_CLASSES_ROOT\Extensions\ContractId\Windows.Protocol\PackageId\MicrosoftEdge_..." and the file "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AppxManifest.xml" shows that only "http", "https" and "read"??? are valid.

Using some of the various Edge launcher executables doesn't help. As they just pass on a parameter to "microsoft-edge:"

I think that WeBuilder might have to register a custom protocol in order for Edge to open local files.
Ref: https://msdn.microsoft.com/en-us/windows/hardware/drivers/mt228339

Any ideas on how to get it integrated into Webuilder's Browser Previews?
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Previewing in Microsoft Edge Browser

Postby Aivars » Wed Apr 19, 2017 7:34 pm

Ok, so for some reason they want to marginalize developers. The best way right now is to use local web server and Preview Mappings and some tinkering:

1) Use local webserver and configure Preview Mappings (so that you always preview http:// instead of file://)
2) Create edge.bat file with following content:
Code: Select all
start microsoft-edge:%~1

3) Menu Options -> Preferences -> Preview -> Browsers add Additional browser "Edge"; use the edge.bat as Path (you will need to change from *.exe to *.* in the Open dialog to see .bat files)

I'm not sure it's even possible to preview file:/// in Edge right now. Let me know if you find something.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2453
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Previewing in Microsoft Edge Browser

Postby pmk65 » Thu Apr 20, 2017 6:56 pm

Aivars wrote:Ok, so for some reason they want to marginalize developers.
I'm not sure it's even possible to preview file:/// in Edge right now. Let me know if you find something.


It will open a local URI if you enter it in the url/search field.
I can't find any "Open file" menu items. So it looks like MS is again favoring tablet users. :(

I'll try your solution. (I always assumed that you had to turn of the build-in server when using an external server)
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Previewing in Microsoft Edge Browser

Postby pmk65 » Fri Feb 02, 2018 2:01 pm

Update: Looks like this launcher does the trick. https://www.npmjs.com/package/edge-launcher

Then in WeBuilder/Configure Browser, set the launcher as executable for "Microsoft Edge"
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Previewing in Microsoft Edge Browser

Postby pety » Fri Feb 02, 2018 7:39 pm

pmk65 wrote:Update: Looks like this launcher does the trick. https://www.npmjs.com/package/edge-launcher

Then in WeBuilder/Configure Browser, set the launcher as executable for "Microsoft Edge"

Any screenshot help?
pety
 
Posts: 187
Joined: Fri Mar 02, 2012 7:17 pm

Re: Previewing in Microsoft Edge Browser

Postby pmk65 » Mon Feb 05, 2018 2:21 pm

pety wrote:Any screenshot help?


Image
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Previewing in Microsoft Edge Browser

Postby pety » Tue Feb 06, 2018 8:47 pm

@pmk65
Thanks a lot !
pety
 
Posts: 187
Joined: Fri Mar 02, 2012 7:17 pm

Re: Previewing in Microsoft Edge Browser

Postby erikno » Sun Jan 06, 2019 4:41 pm

My Approach with a Little script!

Options -> External Programs -> Add
Name Path Params: Edge C:\Scripts\StartEdge_From_Webuilder.vbs "%file" -> OK
The Script:
Code: Select all
Set Param    = WScript.Arguments   
Set objShell = CreateObject("Wscript.Shell")
objShell.Run("cmd.exe /C start microsoft-edge:http:" + Replace( Param(0), "\web", "" ))

Now you can start the browser: via Tools -> External Programs -> Edge
Or integrate in to the Panel with: RightClick -> Customize -> Commands -> Edge -> Drag drop

Maybe you have to edit the script … replace .. \web …
This depends on preferences/preview/mapping Filesystem Path
.
erikno
 
Posts: 10
Joined: Sun Jan 06, 2019 4:09 pm

Re: Previewing in Microsoft Edge Browser

Postby Aivars » Tue Jan 08, 2019 6:57 pm

Thanks for the tips. I'll add to user suggestions to have this be built in, although now that Microsoft is switching to Chromium again nobody really knows what will happen and will the Edge even exist as we know it right now...
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2453
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 11 guests

cron