@filerobot/url
v3.74.1
Published
The Url plugin lets users import files from the Internet. Paste any URL and it’ll be added!
Downloads
6,041
Keywords
Readme
@filerobot/url
The Url plugin for Filerobot Media Asset Widget lets users import files from the Internet. Paste any URL and it’ll be added!
Usage
NPM
npm install --save @filerobot/url
YARN
yarn add @filerobot/url
then
import Url from '@filerobot/url'
...
...
...
filerobot.use(Url, propertiesObject)
CDN
The plugin from CDN is found inside Filerobot
global object Filerobot.Url
const url = window.Filerobot.Url
...
...
...
filerobot.use(url, propertiesObject)
Plugin's styles
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.
Properties
title
Type: string
Default: 'Link'
The title/label that would be shown & used for the plugin.
companionHeaders
Type: null
| object
Default: null
If you need to pass additional headers for in companion requests then pass them in this property.