PasteCleanupSettings
12 Sep 20251 minute to read
Configures the paste cleanup settings of the RichTextEditor.
Properties
allowedStyleProps string[]
Specifies the allowed style properties when pasting in the RichTextEditor.
Defaults to [‘background’, ‘background-color’, ‘border’, ‘border-bottom’, ‘border-left’, ‘border-radius’, ‘border-right’, ‘border-style’, ‘border-top’, ‘border-width’, ‘clear’, ‘color’, ‘cursor’, ‘direction’, ‘display’, ‘float’, ‘font’, ‘font-family’, ‘font-size’, ‘font-weight’, ‘font-style’, ‘height’, ‘left’, ‘line-height’, ‘list-style-type’, ‘margin’, ‘margin-top’, ‘margin-left’, ‘margin-right’, ‘margin-bottom’, ‘max-height’, ‘max-width’, ‘min-height’, ‘min-width’, ‘overflow’, ‘overflow-x’, ‘overflow-y’, ‘padding’, ‘padding-bottom’, ‘padding-left’, ‘padding-right’, ‘padding-top’, ‘position’, ‘right’, ‘table-layout’, ‘text-align’, ‘text-decoration’, ‘text-transform’, ‘text-indent’, ‘top’, ‘vertical-align’, ‘visibility’, ‘white-space’, ‘width’, ‘flex-direction’]
deniedAttrs string[]
Specifies the attributes to restrict when pasting in the RichTextEditor.
Defaults to null
deniedTags string[]
Specifies the tags to restrict when pasting in the RichTextEditor.
Defaults to null
keepFormat boolean
Specifies whether to keep or remove formatting when pasting in the RichTextEditor.
Defaults to true
plainText boolean
Specifies whether to paste as plain text or not in the RichTextEditor.
Defaults to false
prompt boolean
Specifies whether to enable the prompt for paste in the RichTextEditor.
Defaults to false