@@ -20,6 +20,8 @@
<li><input type="checkbox" name="handler[]" value="bottom-right" id="resizer-checkbox__bottom-right"> <label for="resizer-checkbox__bottom-right">bottom-right</label></li>
<li><input type="checkbox" name="handler[]" value="bottom-left" id="resizer-checkbox__bottom-left"> <label for="resizer-checkbox__bottom-left">bottom-left</label></li>
</ol>
+
+ <p><input type="checkbox" name="resize-image" value="true" id="resize-image" checked> <label for="resize-image">Resize using image directly</label></p>
</section>
<div id="editor">
@@ -53,4 +53,9 @@ ClassicEditor
}
document.head.appendChild( dynamicStylesheet );
+ // Resize using image
+ document.getElementById( 'resize-image' ).addEventListener( 'change', function() {
+ window.pocResizeUsingImage = this.checked;
+ } );
}() );