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