UNPKG

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