@shakrmedia/editor-sdk ShakrEditorOpenMediaLibraryEvent

ShakrEditorOpenMediaLibraryEvent interface#

Event Object for 'open_media_library' event.

Signature:
export interface ShakrEditorOpenMediaLibraryEvent

Properties#

PropertyTypeDescription
callback(res: { media_items: ShakrEditorMedia[]; }) => voidCallback function which should be called with selected media items
library_idstringShakrEditorMediaLibrary.id property of ShakrEditorMediaLibrary provided to ShakrEditor constructor option ShakrEditorOptions.media_libraries property. This can be used for distinguish which library has requested the media.