The Url plugin for Filerobot Media Asset Widget lets users import files from the Internet. Paste any URL and it’ll be added!
npm install --save @filerobot/url
yarn add @filerobot/url
then
import Url from '@filerobot/url'
...
...
...
filerobot.use(Url, propertiesObject)
The plugin from CDN is found inside Filerobot
global object Filerobot.Url
const url = window.Filerobot.Url
...
...
...
filerobot.use(url, propertiesObject)
import '@filerobot/core/dist/style.css'
import '@filerobot/url/dist/style.css'
or if you prefer the minified version
import '@filerobot/core/dist/style.min.css'
import '@filerobot/url/dist/style.min.css'
The plugin's css file should be imported after the Core's css file for having the styles shown correctly.
Type: string
Default: 'Link'
The title/label that would be shown & used for the plugin.
Type: null
| object
Default: null
If you need to pass additional headers for in companion requests then pass them in this property.