Coder Social home page Coder Social logo

stephensmitchell-forks / savetoazureblob-markdownmonster-addin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rickstrahl/savetoazureblob-markdownmonster-addin

0.0 2.0 0.0 12.61 MB

Markdown Monster Addin to open or paste images from your local machine and save them in Azure Blob Storage and embed link into your post.

C# 98.90% PowerShell 1.10%

savetoazureblob-markdownmonster-addin's Introduction

Save To Azure Blob Storage Markdown Monster Add-in

This project provides a Markdown Monster Add-in for saving images opened from a file or from the clipboard and posting them to a Blob in Azure Blob Storage.

Images are previewed and can then be pushed to Azure Storage with the resulting URL automatically getting embedded into the open Markdown document.

Early pre-release

This version is a pre-release version so installation and configuration is manual for now. Please see instructions below.

How it works

The add-in allows you to select images off the file system or from the clipboard, which can then be posted to an Azure Blob container. The add-in uploads the file to blob storage and then captures the new blob's URL which is then embedded into the document.

Here's a animated gif that shows the workflow:

Images from Clipboard Optimizations

If an image exists on the clipboard when the add-in is started, it's immediately loaded.

If no image is selected and you move away and copy an image to the clipboard, the image is automatically pasted into the preview when you activate the add in window.

Otherwise you can use the Paste Image button or Control-V to paste images from the clipboard.

Installation

Currently add-ins have to be manually installed into Markdown Monster - we'll have an automated registry soon, but for now...

  1. Download the addin.zip from the Build folder
  2. Right-click the ZIP file, go to properties and Unblock
  3. Unzip and copy all of the contents to c:\Program Files\Markdown Monster\Addins, but do not overwrite files if prompted

Configuration

To configure this addin you need to setup connections to Azure which you can do via the Configuration dialog. You can access this dialog from the dropdown button next to the addin icon, or from the gear icon next to the connections in the main dialog.

Here's what the config dialog looks like.

You need to specify:

Name

This is the display name for the connection, and what shows in the list.

ConnectionString

This is the actual Azure connection string to connect to your BlobStorage account. You can get the connection string from the portal.

Example:
DefaultEndpointsProtocol=https;AccountName=wwblob;AccountKey=yt0tsCf9scBJlBepmyj7eyzW/7LpYPN7dDMRm215x4R0ng0+TVlDxWXyqHr3ob4vrLFSPloOh03pezg6WsnQ==

ContainerName

This is the name Azure Blob Container that you want to store images to. This container has to exist before you can post images to it.

on:

{
  "ConnectionStrings": [
    {
      "Name": "West Wind Weblog Images",
      "ConnectionString": "<encryptedstring>",
      "ContainerName": "westwindblogimages"
    },
    {
      "Name": "Book Images",
      "ConnectionString": "<encryptedstring>",
      "ContainerName": "bookimages"
    },
  ]
}

You can create multiple connections and the connections will show in the list on the toolbar to choose from. After adding the configuration for your container you will need to restart Markdown Monster.

savetoazureblob-markdownmonster-addin's People

Contributors

brandonh-msft avatar gep13 avatar misterjames avatar rickstrahl avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.