Note: This plugin is only available for Tiny Cloud users.
The Tiny Drive plugin adds the functionality to upload and manage files and images to the cloud. This plugin is only available in Tiny Cloud and requires you to register for an API key.
To enable this functionality, add tinydrive
to the list of plugins in the tinymce.init
call. You also need to authenticate the user using a JSON Web Token (JWT).
Once you enable Tiny Drive it integrates as the default file picker for the Image, Link, and Media dialogs and as the default upload handler for local images being pasted or inserted into the document.
Interactive example
Basic setup
tinymce.init({
selector: 'textarea', // change this value according to your html
plugins: 'tinydrive',
tinydrive_token_provider: 'URL_TO_YOUR_TOKEN_PROVIDER'
});
Configuration
You can read more about the various configuration options for Tiny Drive in the dedicated configuration page.
Toolbar buttons
The Tiny Drive plugin provides the following toolbar buttons:
Toolbar button identifier | Description |
---|---|
insertfile | Opens the Tiny Drive file selector. |
These toolbar buttons can be added to the editor using:
- The
toolbar
configuration option. - The
quickbars_insert_toolbar
configuration option. - Custom Context toolbars.
Menu items
The Tiny Drive plugin provides the following menu items:
Menu item identifier | Default Menu Location | Description |
---|---|---|
insertfile | Not Applicable | Opens the Tiny Drive file selector. |
These menu items can be added to the editor using:
- The
menu
configuration option. - The
contextmenu
configuration option. - Custom Menu toolbar buttons.
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Can't find what you're looking for? Let us know.
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.