A WordPress plugin to embed OneDrive items into blog posts. The plugin includes a Gutenberg Block and a [onedrive]
shortcode for users to paste their shared OneDrive link for embedding.
Optionally, if you create an Azure app, your users can login to OneDrive directly to select a file for embedding all-at-once. For configuration details, read the following wiki article: https://github.com/hwdsb/onedrive/wiki/File-Picker-Set-Up
There are two ways to use the plugin:
To use:
If your site administrator has set up the File Picker, steps 2 and 3 can be skipped by clicking on the Or Select From Drive button inside the OneDrive block. This will allow you to login to your OneDrive to select a file for embedding.
Note: If you are using OneDrive for SharePoint / Microsoft 365, you can only directly embed Word, PowerPoint, Excel and Visio files due to restrictions.
The shortcode method is useful for those still using the Classic Editor, but can also be used with the Block Editor using the Shortcode block if desired.
Read the following guide for more information.