epam / UUI

React-based components and accelerators library built by EPAM Systems.
https://uui.epam.com/
MIT License
160 stars 61 forks source link

RTE - File Download - allow custom download logic #2309

Open jakobz opened 3 weeks ago

jakobz commented 3 weeks ago

Description

There are cases, when we need to extend file download behavior. Examples:

Describe the solution you'd like

Add a new prop somewhere in RTE config, accepting callback like onDownload: (link: string) => void. This callback should be called when the user clicks download. Passing this callback should also disable the default behavior.