Class PasteCleanupSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
PasteCleanupSettingsBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.BlockEditor
Assembly: Syncfusion.AspNetMvc.BlockEditor.dll
Syntax
public class PasteCleanupSettingsBuilder : ControlBuilder
Constructors
PasteCleanupSettingsBuilder()
Declaration
public PasteCleanupSettingsBuilder()
PasteCleanupSettingsBuilder(PasteCleanupSettings)
Declaration
public PasteCleanupSettingsBuilder(PasteCleanupSettings model)
Parameters
| Type | Name | Description |
|---|---|---|
| PasteCleanupSettings | model |
Methods
AllowedStyles(String[])
Specifies the allowed styles when pasting content. This property holds an array of styles that can be applied to pasted content.
Declaration
public PasteCleanupSettingsBuilder AllowedStyles(string[] value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | value |
Returns
| Type |
|---|
| PasteCleanupSettingsBuilder |
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.
Declaration
public PasteCleanupSettingsBuilder DeniedTags(string[] value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | value |
Returns
| Type |
|---|
| PasteCleanupSettingsBuilder |
KeepFormat(Boolean)
Specifies whether to keep the formatting of pasted content. This property determines if the formatting (e.g., bold, italics) should be preserved.
Declaration
public PasteCleanupSettingsBuilder KeepFormat(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | value |
Returns
| Type |
|---|
| PasteCleanupSettingsBuilder |
PlainText(Boolean)
Specifies whether to paste as plain text. This property removes any formatting from the pasted content and pastes only the raw text.
Declaration
public PasteCleanupSettingsBuilder PlainText(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | value |
Returns
| Type |
|---|
| PasteCleanupSettingsBuilder |