@filerobot/url
TypeScript icon, indicating that this package has built-in type declarations

3.36.6 • Public • Published

@filerobot/url

Plugins Website Version Scaleflex team License CodeSandbox

Filerobot Widget logo

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @filerobot/url

Weekly Downloads

580

Version

3.36.6

License

MIT

Unpacked Size

87.5 kB

Total Files

10

Last publish

Collaborators

  • philipka
  • amrw.js
  • amr26
  • ahmeeedmostafa
  • vitaly.shaposhnik