|
|
@@ -71,6 +71,29 @@ export default class ImageResize extends Plugin {
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
+ * The option for disabling image resize by handles.
|
|
|
+ *
|
|
|
+ * It's useful when you want to set certain options for image resize and be sure that other users
|
|
|
+ * can only set one of those sizes by the dropdown or standalone buttons defined in
|
|
|
+ * {@link module:image/image~ImageConfig#resizeOptions}.
|
|
|
+ *
|
|
|
+ * ClassicEditor
|
|
|
+ * .create( editorElement, {
|
|
|
+ * image: {
|
|
|
+ * disableResizeHandles: true
|
|
|
+ * }
|
|
|
+ * } )
|
|
|
+ * .then( ... )
|
|
|
+ * .catch( ... );
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * This option is used by the {@link module:image/imageresize~ImageResize} feature.
|
|
|
+ *
|
|
|
+ * @default 'false'
|
|
|
+ * @member {String} module:image/image~ImageConfig#disableResizeHandles
|
|
|
+ */
|
|
|
+
|
|
|
+/**
|
|
|
* The image resize options.
|
|
|
*
|
|
|
* Each option should have at least these two properties:
|