(Plugin) File picker for links

In this article, you will find how to add your own (custom) control for selecting a file from external file system.

Marina Krivenets avatar
Written by Marina Krivenets
Updated over a week ago

If you want to add your own control for selecting a file from an external file system in the pop-up window to be linked with the existing Link control for every basic block, you can set the "externalFilesLibrary" param when you initialize the Plugin:

externalFilesLibrary: {
buttonText: 'YOUR BUTTON NAME',
open: openLibrary(onFileSelectCallback, onCancelCallback) {
/* Put your logic here.
when user select the file from external library.
when user close the library without file selection.

As a result, your customers can add the file by clicking on the "Pick up mu file" button.

Please find a code example here to see how it works in general.

Thank you for taking the time to read our articles. We hope you will find this information helpful.

If you have any additional questions, please email us at support@stripo.email.

We would be glad to talk with you.

Did this answer your question?