PasteSettings
12 Sep 20251 minute to read
Configures settings related to pasting content in the editor.
This property utilizes the PasteSettingsModel to specify various options and behaviors for paste operations.
Properties
allowedStyles string[]
Specifies the allowed styles when pasting content.
This property holds an array of styles that can be applied to pasted content.
Defaults to [‘font-weight’, ‘font-style’, ‘text-decoration’, ‘text-transform’]
deniedTags string[]
Specifies the tags that are denied when pasting content.
This property holds an array of tags that should be removed from pasted content.
Defaults to []
keepFormat boolean
Specifies whether to keep the formatting of pasted content.
This property determines if the formatting (e.g., bold, italics) should be preserved.
Defaults to true
plainText boolean
Specifies whether to paste as plain text.
This property removes any formatting from the pasted content and pastes only the raw text.
Defaults to false