3.5.3 • Published 5 years ago

tui-image-editor-build-umd v3.5.3

Weekly downloads
4
License
-
Repository
-
Last release
5 years ago

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>