Hi,
I’m very much new to this stuff, so please excuse when I’m totaly wrong. But please can you confirm that the ImageEditor is part of the CDN package (1.20.1)
Im loading the https://transloadit.edgly.net/releases/uppy/v1.20.1/uppy.min.js via a script tag. And I can load any plugin by unsing it like in the dokumentation noted but when
I want to load the ImageEditor I receive the following error:
Uncaught TypeError: Expected a plugin class, but got undefined. Please verify that the plugin was imported and spelled correctly.
My used code is this:
<script src="https://transloadit.edgly.net/releases/uppy/v1.20.1/uppy.min.js"></script>
<script src="https://transloadit.edgly.net/releases/uppy/locales/v1.16.4/de_DE.min.js"></script>
<script>
const uppy = Uppy.Core({
locale: Uppy.locales.de_DE
})
const Dashboard = Uppy.Dashboard
const ImageEditor = Uppy.ImageEditor
const XHRUpload = Uppy.XHRUpload
uppy.use(Dashboard, {
target: '#drag-drop-area',
inline: true,
showProgressDetails: true
})
uppy.use(ImageEditor, { target: Dashboard })
uppy.use(XHRUpload, {
endpoint: 'save_file.php',
fieldName: 'files'
})
</script>