docs: function openDialog(files, config, handleInsert) {
    uploadcare.openDialog(files, config).done(({ promise }) =>
      promise().then(({ cdnUrl, count }) => {
        if (config.multiple) {
          const urls = Array.from({ length: count }, (val, idx) => `${cdnUrl}nth/${idx}/`);
          handleInsert(urls);
        } else {
          handleInsert(cdnUrl);
        }
      }),
    );
  }