UNPKG

1.59 kBTypeScriptView 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 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8 */
9/**
10 * @module paste-from-office/pastefromoffice
11 */
12import { Plugin } from 'ckeditor5/src/core.js';
13import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
14/**
15 * The Paste from Office plugin.
16 *
17 * This plugin handles content pasted from Office apps and transforms it (if necessary)
18 * to a valid structure which can then be understood by the editor features.
19 *
20 * Transformation is made by a set of predefined {@link module:paste-from-office/normalizer~Normalizer normalizers}.
21 * This plugin includes following normalizers:
22 * * {@link module:paste-from-office/normalizers/mswordnormalizer~MSWordNormalizer Microsoft Word normalizer}
23 * * {@link module:paste-from-office/normalizers/googledocsnormalizer~GoogleDocsNormalizer Google Docs normalizer}
24 *
25 * For more information about this feature check the {@glink api/paste-from-office package page}.
26 */
27export default class PasteFromOffice extends Plugin {
28 /**
29 * @inheritDoc
30 */
31 static get pluginName(): "PasteFromOffice";
32 /**
33 * @inheritDoc
34 */
35 static get isOfficialPlugin(): true;
36 /**
37 * @inheritDoc
38 */
39 static get requires(): readonly [typeof ClipboardPipeline];
40 /**
41 * @inheritDoc
42 */
43 init(): void;
44}