-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
image.js
69 lines (62 loc) · 1.83 KB
/
image.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module image/image
*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import ImageEditing from '../src/image/imageediting';
import Widget from '@ckeditor/ckeditor5-widget/src/widget';
import ImageTextAlternative from './imagetextalternative';
import '../theme/image.css';
/**
* The image plugin.
*
* For a detailed overview, check the {@glink features/image image feature} documentation.
*
* This is a "glue" plugin which loads the following plugins:
*
* * {@link module:image/image/imageediting~ImageEditing},
* * {@link module:image/imagetextalternative~ImageTextAlternative}.
*
* Usually, it is used in conjuction with other plugins from this package. See the {@glink api/image package page}
* for more information.
*
* @extends module:core/plugin~Plugin
*/
export default class Image extends Plugin {
/**
* @inheritDoc
*/
static get requires() {
return [ ImageEditing, Widget, ImageTextAlternative ];
}
/**
* @inheritDoc
*/
static get pluginName() {
return 'Image';
}
}
/**
* The configuration of the image features. Used by the image features in the `@ckeditor/ckeditor5-image` package.
*
* Read more in {@link module:image/image~ImageConfig}.
*
* @member {module:image/image~ImageConfig} module:core/editor/editorconfig~EditorConfig#image
*/
/**
* The configuration of the image features. Used by the image features in the `@ckeditor/ckeditor5-image` package.
*
* ClassicEditor
* .create( editorElement, {
* image: ... // Image feature options.
* } )
* .then( ... )
* .catch( ... );
*
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
*
* @interface ImageConfig
*/