PasteFromOfficeMSWordNormalizer
class
Normalizer for the content pasted from Microsoft Word.
Properties
document: ViewDocumentreadonlymodule:paste-from-office/normalizers/mswordnormalizer~PasteFromOfficeMSWordNormalizer#documentenableSkipLevelLists: booleanreadonlymodule:paste-from-office/normalizers/mswordnormalizer~PasteFromOfficeMSWordNormalizer#enableSkipLevelListshasMultiLevelListPlugin: booleanreadonlymodule:paste-from-office/normalizers/mswordnormalizer~PasteFromOfficeMSWordNormalizer#hasMultiLevelListPluginhasTablePropertiesPlugin: booleanreadonlymodule:paste-from-office/normalizers/mswordnormalizer~PasteFromOfficeMSWordNormalizer#hasTablePropertiesPlugin
Methods
constructor( document, hasMultiLevelListPlugin, hasTablePropertiesPlugin, enableSkipLevelLists )module:paste-from-office/normalizers/mswordnormalizer~PasteFromOfficeMSWordNormalizer#constructorCreates a new
PasteFromOfficeMSWordNormalizerinstance.Parameters
document: ViewDocumentView document.
hasMultiLevelListPlugin: booleanDefaults to
falsehasTablePropertiesPlugin: booleanDefaults to
falseenableSkipLevelLists: booleanDefaults to
false
execute( data ) → voidmodule:paste-from-office/normalizers/mswordnormalizer~PasteFromOfficeMSWordNormalizer#executeExecutes the normalization of a given data.
Parameters
Returns
void
isActive( htmlString ) → booleanmodule:paste-from-office/normalizers/mswordnormalizer~PasteFromOfficeMSWordNormalizer#isActiveMust return
trueif thehtmlStringcontains content which this normalizer can transform.Parameters
htmlString: string
Returns
boolean