PasteCleanupSettings
Represents the configuration options for Paste Cleanup (see example).
const settings: PasteCleanupSettings = {
convertMsLists: true,
removeHtmlComments: true,
stripTags: ['span'],
removeAttributes: ['lang'],
removeMsClasses: true,
removeMsStyles: true,
removeInvalidHTML: true
};
Name | Type | Default | Description |
---|---|---|---|
convertMsLists? |
|
Converts MS Word lists to HTML lists when set to | |
removeAttributes? |
|
Removes the specified DOM attributes from the HTML.
Set to For example, with | |
removeHtmlComments? |
|
Removes HTML comments when set to For example, | |
removeInvalidHTML? |
|
Removes invalid HTML when set to For example, | |
removeMsClasses? |
|
Removes class attributes starting with 'Mso' when set to For example, | |
removeMsStyles? |
|
Removes style attributes starting with 'Mso' when set to For example, | |
stripTags? |
|
Removes the specified tags from the HTML. For example, with |