UNPKG

977 BTypeScriptView 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 basic-styles/code
7 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import CodeEditing from './code/codeediting.js';
10import CodeUI from './code/codeui.js';
11import '../theme/code.css';
12/**
13 * The code feature.
14 *
15 * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
16 * and the {@glink api/basic-styles package page}.
17 *
18 * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
19 * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
20 */
21export default class Code extends Plugin {
22 /**
23 * @inheritDoc
24 */
25 static get requires(): readonly [typeof CodeEditing, typeof CodeUI];
26 /**
27 * @inheritDoc
28 */
29 static get pluginName(): "Code";
30}