tui-image-editor-build-umd
v3.5.3
Published
This is standalone build (with all dependency include) for https://github.com/nhn/tui.image-editor
Downloads
8
Maintainers
Readme
This package is a self contained build for tui image editor (https://github.com/nhn/tui.image-editor)
Just add minified css and script sources to the page and go (see example in dist/example).
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="./image-editor.bundle.min.css">
<script src="./image-editor.bundle.min.js"></script>
</head>
<body>
<div id="img-editor"></div>
<script>
var imageEditor = new tui.ImageEditor('#img-editor', {
includeUI: {
loadImage: {
path: 'osx.jpg',
name: 'SampleImage'
},
initMenu: 'filter',
menuBarPosition: 'bottom'
},
cssMaxWidth: 700,
cssMaxHeight: 500
});
window.onresize = function() {
imageEditor.ui.resizeEditor();
}
</script>
</body>
</html>