A hook that provides a way to use the media manager.

Since
  • 4.1.0
Returns:

The media manager hook.

Type: 
object

Methods

(inner) openMediaManager(contentModeopt, idopt, onMediaSelectopt, optionsopt)

Opens the media manager.

Parameters:
NameTypeAttributesDescription
contentModestring<optional>

The content mode for the media manager (can be upload or browse).

idobject<optional>

The id for the media manager.

onMediaSelectfunction<optional>

The callback to run when media is selected.

optionsobject<optional>

The options for the media manager.

Since
  • 4.1.0