Gallery Plugin
What's better than a picture? A lot of pictures !
Let's push even higher with tons of customizable layouts to explore !
#
Usage#
Configupload functions
#
note
upload functions are passed through RichContentEditor
e.g.
handleFileUpload
is a function provided to handle media uploads from the native file input.
handleFileSelection
is a function provided to handle media uploads from a custom file input.
In both functions when the upload phase is done the updateEntity
callback should be called with an object containing the data, error (upon faliure) and index (for multiple file uploads).
Scrolling Element
#
The scrollingElement
is required for the gallery to work properly, should return the element containing the editor\gallery in the page.
If not provided it would fall back to document.body
.
modify default config
#
note
To enable video use accept: 'image/*,video/*'
.
Default value: