-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
normalizer.jsdoc
34 lines (30 loc) · 1.12 KB
/
normalizer.jsdoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module paste-from-office/normalizer
*/
/**
* Interface defining a content transformation pasted from an external editor.
*
* Normalizers are registered by the {@link module:paste-from-office/pastefromoffice~PasteFromOffice} plugin and run on
* {@link module:clipboard/clipboard~Clipboard#event:inputTransformation inputTransformation event}. They detect environment-specific
* quirks and transform it into a form compatible with other CKEditor features.
*
* @interface Normalizer
*/
/**
* Must return `true` if the `htmlString` contains content which this normalizer can transform.
*
* @method #isActive
* @param {String} htmlString full content of `dataTransfer.getData( 'text/html' )`
* @returns {Boolean}
*/
/**
* Executes the normalization of a given data.
*
* @method #execute
* @param {Object} data object obtained from
* {@link module:clipboard/clipboard~Clipboard#event:inputTransformation inputTransformation event}.
*/