UNPKG

803 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/codeediting
7 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import { TwoStepCaretMovement } from 'ckeditor5/src/typing.js';
10/**
11 * The code editing feature.
12 *
13 * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
14 * as a `<code>` element.
15 */
16export default class CodeEditing extends Plugin {
17 /**
18 * @inheritDoc
19 */
20 static get pluginName(): "CodeEditing";
21 /**
22 * @inheritDoc
23 */
24 static get requires(): readonly [typeof TwoStepCaretMovement];
25 /**
26 * @inheritDoc
27 */
28 init(): void;
29}