Selaa lähdekoodia

Internal: added an option to decide whether resize should be done by the image.

Marek Lewandowski 6 vuotta sitten
vanhempi
commit
b6563a8800

+ 2 - 0
packages/ckeditor5-image/tests/manual/resize.html

@@ -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">

+ 5 - 0
packages/ckeditor5-image/tests/manual/resize.js

@@ -53,4 +53,9 @@ ClassicEditor
 	}
 
 	document.head.appendChild( dynamicStylesheet );
+
+	// Resize using image
+	document.getElementById( 'resize-image' ).addEventListener( 'change', function() {
+		window.pocResizeUsingImage = this.checked;
+	} );
 }() );