UNPKG

1 kBJavaScriptView Raw
1/**
2 * @license Copyright (c) 2003-2022, 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/**
7 * @module basic-styles/code
8 */
9
10import { Plugin } from 'ckeditor5/src/core';
11import CodeEditing from './code/codeediting';
12import CodeUI from './code/codeui';
13
14import '../theme/code.css';
15
16/**
17 * The code feature.
18 *
19 * For a detailed overview check the {@glink features/basic-styles Basic styles feature documentation}
20 * and the {@glink api/basic-styles package page}.
21 *
22 * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
23 * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
24 *
25 * @extends module:core/plugin~Plugin
26 */
27export default class Code extends Plugin {
28 /**
29 * @inheritDoc
30 */
31 static get requires() {
32 return [ CodeEditing, CodeUI ];
33 }
34
35 /**
36 * @inheritDoc
37 */
38 static get pluginName() {
39 return 'Code';
40 }
41}