UNPKG

862 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 */
5import type { ViewDocument } from 'ckeditor5/src/engine.js';
6import type { Normalizer, NormalizerData } from '../normalizer.js';
7/**
8 * Normalizer for the content pasted from Microsoft Word.
9 */
10export default class MSWordNormalizer implements Normalizer {
11 readonly document: ViewDocument;
12 readonly hasMultiLevelListPlugin: boolean;
13 /**
14 * Creates a new `MSWordNormalizer` instance.
15 *
16 * @param document View document.
17 */
18 constructor(document: ViewDocument, hasMultiLevelListPlugin?: boolean);
19 /**
20 * @inheritDoc
21 */
22 isActive(htmlString: string): boolean;
23 /**
24 * @inheritDoc
25 */
26 execute(data: NormalizerData): void;
27}