UNPKG

1.04 kBJavaScriptView 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 heading/heading
7 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import HeadingEditing from './headingediting.js';
10import HeadingUI from './headingui.js';
11import '../theme/heading.css';
12/**
13 * The headings feature.
14 *
15 * For a detailed overview, check the {@glink features/headings Headings feature} guide
16 * and the {@glink api/heading package page}.
17 *
18 * This is a "glue" plugin which loads the {@link module:heading/headingediting~HeadingEditing heading editing feature}
19 * and {@link module:heading/headingui~HeadingUI heading UI feature}.
20 *
21 * @extends module:core/plugin~Plugin
22 */
23export default class Heading extends Plugin {
24 /**
25 * @inheritDoc
26 */
27 static get requires() {
28 return [HeadingEditing, HeadingUI];
29 }
30 /**
31 * @inheritDoc
32 */
33 static get pluginName() {
34 return 'Heading';
35 }
36}