@ckeditor/ckeditor5-paste-from-office
Version:
Paste from Office feature for CKEditor 5.
28 lines (27 loc) • 862 B
TypeScript
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import type { ViewDocument } from 'ckeditor5/src/engine.js';
import type { Normalizer, NormalizerData } from '../normalizer.js';
/**
* Normalizer for the content pasted from Microsoft Word.
*/
export default class MSWordNormalizer implements Normalizer {
readonly document: ViewDocument;
readonly hasMultiLevelListPlugin: boolean;
/**
* Creates a new `MSWordNormalizer` instance.
*
* @param document View document.
*/
constructor(document: ViewDocument, hasMultiLevelListPlugin?: boolean);
/**
* @inheritDoc
*/
isActive(htmlString: string): boolean;
/**
* @inheritDoc
*/
execute(data: NormalizerData): void;
}