Install file manager plugin for TinyMCE

File manager for TinyMCE

Download and copy the plugin

When you already have TinyMCE installed, you can just install Flmngr add-on for TinyMCE.

In order to install file manager plugin for TinyMCE 6 (versions 4 and 5 are also supported), first download it:

and then unpack it into plugins/ directory this way:


Configure TinyMCE

Enable the add-on in the TinyMCE initialization parameters:

    plugins: "file-manager",
    Flmngr: {
        apiKey: "FLMNFLMN",                                  // default free key
        urlFileManager: '', // demo server
        urlFiles: '',             // demo file storage

Add plugins option if you do not have one. If this option already exists in your config you pass to TinyMCE, just append file-manager to existing configuration like plugins: "links,code,file-manager"

Manual toolbar configuration

By default Flmngr in TinyMCE automatically adds its toolbar line to your existing configuration, so there is no need to define toolbar parameter.

So you can do nothing or, if you wish to replace this behavior and manually configure the toolbar button by button, please add such parameters to there:

ui: {
    useAutoToolbar: false
toolbar: [
    "cut copy | undo redo | searchreplace | bold italic strikethrough | forecolor backcolor | blockquote | removeformat | code",
    "formatselect | link | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent",
    "Upload Flmngr ImgPen | Image ImagePreview2 ImageGallery2"

Install the backend

Now you need to install the Flmngr file manager backend somewhere on your server. Behind the link, there is a manual on how to do it and link with Flmngr TinyMCE plugin.


There is a sample of TinyMCE with the file manager installation and using its API:

Using API

File manager TinyMCE add-on adds some buttons to the toolbar, and you can use it right after installed and configured. But sometimes you need to implement a custom logic (as another TinyMCE plugin or in a script outside of TinyMCE but on the same page).

Flmngr API is available to you when you use the TinyMCE plugin. This means you do not need to manually embed some other scripts. For example, if you have some file field below the WYSIWYG editor.

Call the method getFlmngr of the TinyMCE instance always if you wish to get a link to API (or save the Flmngr object returned in the callback and call it directly each time).

Note: the new API is passed in the callback only (at the first argument). The return value of the method and the second argument of the callback (omit if do you not need it) contain a link to legacy API. Such a link to the old API exists for backward compatibility only.

    (Flmngr) => {
        // Flmngr argument contains Flmngr API, 
        // for example you can open the file manager and let user pick a file:{
            // There is no need to set 'apiKey', 'urlFileManager' or 'urlFiles' here
            // due to you already set them in the config of TinyMCE.
            // Also there is not need to call Flmngr.load() API method
            // because TinyMCE already loaded the file manager.
            isMultiple: false, // let selecting a single file
            onFinish: (files) => {
                console.log("User picked:");

See this sample in our CodePen demo.

We experience problems with Zendesk, our ticket system, mail sent there won't be delivered. Please write us directly to until the problem is resolved.