UNPKG

862 BJavaScriptView Raw
1/**
2 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module image/imagecaption
7 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import ImageCaptionEditing from './imagecaption/imagecaptionediting.js';
10import ImageCaptionUI from './imagecaption/imagecaptionui.js';
11import '../theme/imagecaption.css';
12/**
13 * The image caption plugin.
14 *
15 * For a detailed overview, check the {@glink features/images/images-captions image caption} documentation.
16 */
17export default class ImageCaption extends Plugin {
18 /**
19 * @inheritDoc
20 */
21 static get requires() {
22 return [ImageCaptionEditing, ImageCaptionUI];
23 }
24 /**
25 * @inheritDoc
26 */
27 static get pluginName() {
28 return 'ImageCaption';
29 }
30}