/** * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /** * @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. * * Uses the {@link module:image/image/imageediting~ImageEditing}. * * For a detailed overview, check the {@glink features/image image feature} documentation. * * @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 */