• Resolved seany187

    (@seany187)


    Is it possible to have HTML documents open in the browser (vs download). Happy to hack the plugin if I need to on this one.

    I tried adding the mime type text/html but it’s still downloading.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter seany187

    (@seany187)

    Additionally what if we want to add any sort of external link, say a YouTube video?

    Any hints in direction in the code would be greatly appreciated.

    Plugin Author bhaldie

    (@bhaldie)

    Both of these items are on my feature request list, but have not been implemented yet. Stay tuned ??

    Thread Starter seany187

    (@seany187)

    Awesome, great to know, can you point me in the direction to change the code myself, I can do it, just needs some direction. I can perhaps check the extension and open in a new window vs download? We need this for a project and it’s a must have before we can launch this week.

    Plugin Author bhaldie

    (@bhaldie)

    To alter the way download are handled you can look at the file mdocs-downloads.php, there you could make modifications to get your desired results.

    You could also you the mdocs preview to display the html code as well.

    • This reply was modified 7 years, 4 months ago by bhaldie.
    Thread Starter seany187

    (@seany187)

    Can you advise how to do it in preview?

    Plugin Author bhaldie

    (@bhaldie)

    just upload a html file, then click on the files dropdown menu and press the preview button.

    or from the post click on the preview tab.

    Thread Starter seany187

    (@seany187)

    I have done that and it opens as code in google drive. What am I doing wrong?

    • This reply was modified 7 years, 4 months ago by seany187.
    Plugin Author bhaldie

    (@bhaldie)

    it does for me… I just tried it 10 mins ago and it display the code just fine?

    Thread Starter seany187

    (@seany187)

    Hmmm.. here is what happens for me when I upload and HTML and click preview. Ideas? THANK YOU!

    View post on imgur.com

    Plugin Author bhaldie

    (@bhaldie)

    you want it to render in the preview window?

    Thread Starter seany187

    (@seany187)

    Yes, as a webpage.

    Plugin Author bhaldie

    (@bhaldie)

    sorry I misunderstood what you wanted. Preview will not work that way it will only output the html code.

    You will have to modify the mdocs-downloads.php file if you want that functionality .

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Open HTML as File (not download)’ is closed to new replies.