Important changes to Tiny Cloud pricing > Find out more

NOTE: TinyMCE 5 reached End of Support in April 2023. No more bug fixes, security updates, or new features will be introduced to TinyMCE 5. We recommend you upgrade to TinyMCE 6 or consider TinyMCE 5 Long Term Support (LTS) if you need more time.

Tiny Drive plugin

Cloud-based file and image management for TinyMCE.

Contribute to this page

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:

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:

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.