/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ /** * Represents the configuration options for Paste Cleanup ([see example](https://www.telerik.com/kendo-angular-ui/components/editor/paste-cleanup)). * * @example * ```typescript * const settings: PasteCleanupSettings = { * convertMsLists: true, * removeHtmlComments: true, * stripTags: ['span'], * removeAttributes: ['lang'], * removeMsClasses: true, * removeMsStyles: true, * removeInvalidHTML: true * }; * ``` */ export interface PasteCleanupSettings { /** * Converts MS Word lists to HTML lists when set to `true`. */ convertMsLists?: boolean; /** * Removes HTML comments when set to `true`. * * For example, `
content
` becomes `content
`. */ removeHtmlComments?: boolean; /** * Removes the specified tags from the HTML. * * For example, with `stripTags: ['span']`, `content
` becomes `content
`. */ stripTags?: string[]; /** * Removes the specified DOM attributes from the HTML. * Set to `'all'` to remove every attribute. * Set to an array to remove specific attributes. * * For example, with `removeAttributes: ['lang']`, `content
` becomes `content
`. */ removeAttributes?: string[] | 'all'; /** * Removes class attributes starting with 'Mso' when set to `true`. * * For example, `pasted from MS Word
` becomes `pasted from MS Word
`. */ removeMsClasses?: boolean; /** * Removes style attributes starting with 'Mso' when set to `true`. * * For example, `content
` becomes `content
`. */ removeMsStyles?: boolean; /** * Removes invalid HTML when set to `true`. * * For example, `content
content
`. */ removeInvalidHTML?: boolean; }