import { UIEvent, PhotoEditorSDKUI } from 'photoeditorsdk'
PhotoEditorSDKUI.init({
//The Container where PhotoEditorSDKUI should be rendered
container: '#editor',
// Please replace this with your license
// https://account.photoeditorsdk.com/dashboard/subscriptions
license: '{"owner":"Img.ly GmbH","version":"2.1", ...}'
image: 'example.png',
}).then((editor) => {
console.log('PhotoEditorSDK for Web is ready!')
editor.on(UIEvent.CLOSE, () => {
console.log('closed')
})
})
import { PhotoEditorSDKUI } from 'photoeditorsdk'
window.onload = function () {
var container = document.getElementById('pesdk')
var editor = new PhotoEditorSDKUI({
// Please replace this with your license
// https://account.photoeditorsdk.com/dashboard/subscriptions
license: '{"owner":"Img.ly GmbH","version":"2.1", ...}',
//The Container where PhotoEditorSDKUI should be rendered
container: container,
image: './example.jpg'
})
}
This website ensures that you get the best experience possible through analysis services. By clicking accept or continuing to view our website, you agree to the terms of our privacy policy.