Custom File Manager
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");