|
@@ -139,22 +139,22 @@ export default class ImageResize extends Plugin {
|
|
|
* resizeUnit: "%",
|
|
* resizeUnit: "%",
|
|
|
* resizeOptions: [ {
|
|
* resizeOptions: [ {
|
|
|
* name: 'imageResize:original',
|
|
* name: 'imageResize:original',
|
|
|
- * value: null
|
|
|
|
|
|
|
+ * value: null,
|
|
|
* icon: 'original'
|
|
* icon: 'original'
|
|
|
* },
|
|
* },
|
|
|
* {
|
|
* {
|
|
|
* name: 'imageResize:25',
|
|
* name: 'imageResize:25',
|
|
|
- * value: '25'
|
|
|
|
|
|
|
+ * value: '25',
|
|
|
* icon: 'small'
|
|
* icon: 'small'
|
|
|
* },
|
|
* },
|
|
|
* {
|
|
* {
|
|
|
* name: 'imageResize:50',
|
|
* name: 'imageResize:50',
|
|
|
- * value: '50'
|
|
|
|
|
|
|
+ * value: '50',
|
|
|
* icon: 'medium'
|
|
* icon: 'medium'
|
|
|
* },
|
|
* },
|
|
|
* {
|
|
* {
|
|
|
* name: 'imageResize:75',
|
|
* name: 'imageResize:75',
|
|
|
- * value: '75'
|
|
|
|
|
|
|
+ * value: '75',
|
|
|
* icon: 'large'
|
|
* icon: 'large'
|
|
|
* } ],
|
|
* } ],
|
|
|
* toolbar: [ 'imageResize:25', 'imageResize:50', 'imageResize:75', 'imageResize:original', ... ],
|
|
* toolbar: [ 'imageResize:25', 'imageResize:50', 'imageResize:75', 'imageResize:original', ... ],
|
|
@@ -197,5 +197,32 @@ export default class ImageResize extends Plugin {
|
|
|
* .then( ... )
|
|
* .then( ... )
|
|
|
* .catch( ... );
|
|
* .catch( ... );
|
|
|
*
|
|
*
|
|
|
|
|
+ * **Default value**
|
|
|
|
|
+ *
|
|
|
|
|
+ * The following configuration is used by default:
|
|
|
|
|
+ *
|
|
|
|
|
+ * resizeOptions = [
|
|
|
|
|
+ * {
|
|
|
|
|
+ * name: 'imageResize:original',
|
|
|
|
|
+ * value: null,
|
|
|
|
|
+ * icon: 'original'
|
|
|
|
|
+ * },
|
|
|
|
|
+ * {
|
|
|
|
|
+ * name: 'imageResize:25',
|
|
|
|
|
+ * value: '25',
|
|
|
|
|
+ * icon: 'small'
|
|
|
|
|
+ * },
|
|
|
|
|
+ * {
|
|
|
|
|
+ * name: 'imageResize:50',
|
|
|
|
|
+ * value: '50',
|
|
|
|
|
+ * icon: 'medium'
|
|
|
|
|
+ * },
|
|
|
|
|
+ * {
|
|
|
|
|
+ * name: 'imageResize:75',
|
|
|
|
|
+ * value: '75',
|
|
|
|
|
+ * icon: 'large'
|
|
|
|
|
+ * }
|
|
|
|
|
+ * ];
|
|
|
|
|
+ *
|
|
|
* @member {Array.<module:image/imageresize/imageresizebuttons~ImageResizeOption>} module:image/image~ImageConfig#resizeOptions
|
|
* @member {Array.<module:image/imageresize/imageresizebuttons~ImageResizeOption>} module:image/image~ImageConfig#resizeOptions
|
|
|
*/
|
|
*/
|