Table of Contents

Class RichTextEditor

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll

Represents a rich text editor.

[Editor("Rich text")]
public class RichTextEditor : StringEditor, IParameterOptions, IParameterVisibility
Inheritance
RichTextEditor
Implements
Derived
Inherited Members

Constructors

RichTextEditor()

Initializes a new instance of an object.

public RichTextEditor()

Properties

Confguration

Gets or sets editor configuration

[AddInLabel("Configuration")]
[AddInParameter("Confguration")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "ReloadOnChange=true")]
[AddInParameterOrder(102)]
public string? Confguration { get; set; }

Property Value

string

DefaultFontStyle

Gets or sets value used as default class used for the text wrapper

[AddInLabel("Default font style")]
[AddInParameter("DefaultFontStyle")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "required=True; none=False")]
[AddInParameterOrder(0)]
public string? DefaultFontStyle { get; set; }

Property Value

string

EnableAITools

Gets or sets value indicating whether to enable the AI tools

[AddInLabel("Enable AI tools")]
[AddInParameter("EnableAITools")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
[AddInParameterOrder(105)]
public bool EnableAITools { get; set; }

Property Value

bool

Mode

Gets the editor mode.

public override TextEditorMode Mode { get; }

Property Value

TextEditorMode

ShowStyleSelector

Gets or sets value indicating whether to show the style selector

[AddInLabel("Show style selector")]
[AddInParameter("ShowStyleSelector")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
[AddInParameterOrder(104)]
public bool ShowStyleSelector { get; set; }

Property Value

bool

ShowTagSelector

Gets or sets value indicating whether to show the tag selector

[AddInLabel("Show tag selector")]
[AddInParameter("ShowTagSelector")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
[AddInParameterOrder(103)]
public bool ShowTagSelector { get; set; }

Property Value

bool

Methods

GetHiddenParameterNames(string, object?)

public IEnumerable<string> GetHiddenParameterNames(string parameterName, object? parameterValue)

Parameters

parameterName string
parameterValue object

Returns

IEnumerable<string>

GetParameterOptions(string)

protected virtual IEnumerable<ParameterOption> GetParameterOptions(string parameterName)

Parameters

parameterName string

Returns

IEnumerable<ParameterOption>
To top