Normalizer (paste-from-office)
@ckeditor/ckeditor5-paste-from-office/src/normalizer
Interface defining a content transformation pasted from an external editor.
Normalizers are registered by the PasteFromOffice
plugin and run on
inputTransformation event. They detect environment-specific
quirks and transform it into a form compatible with other CKEditor features.
Filtering
Methods
-
execute( data )
Executes the normalization of a given data.
Parameters
data : Object
object obtained from inputTransformation event.
-
isActive( htmlString ) → Boolean
Must return
true
if thehtmlString
contains content which this normalizer can transform.Parameters
htmlString : String
full content of
dataTransfer.getData( 'text/html' )
Returns
Boolean
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.