Custom File Manager
This feature is available with the Plugin for Business plan and higher.
If you're on the Plugin for Startup or Plugin Expansion plan, consider upgrading to access this feature. For more details, visit our pricing page or contact support.
If you want to disable our built-in File Manager just define a
js
customFileManager: true;
in the options object. Then the editor will use the below functions.
onOpenFileManager
When the user clicks on Choose a file (e.g. as a property of an image). This callback is called. For e.g. you can develop your own file manager dialog.
js
onOpenFileManager();
{
// Open your file manager and let user choose a file.
}
chooseFile
When a user chooses a file, you need to call chooseFile function on the TopolPlugin instance. with the url of the file.
js
TopolPlugin.chooseFile("http://url.to/picture.png");