UNPKG

@ckeditor/ckeditor5-paste-from-office

Version:

Paste from Office feature for CKEditor 5.

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