Skip to main content

HtmlEditorSettings.SettingsPlaceholders Property

Provides access to placeholder settings.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public HtmlEditorPlaceholdersSettings SettingsPlaceholders { get; }

Property Value

Type Description
HtmlEditorPlaceholdersSettings

Placeholder settings.

Remarks

The following example illustrates how to specify custom characters for placeholders (Placeholders) instead of default curly braces {}:

@Html.DevExpress().HtmlEditor(
    settings => {
        settings.Name = "HtmlEditor";
        settings.SettingsPlaceholders.StartMark = "[";
        settings.SettingsPlaceholders.EndMark = "]";
    }
).Bind(Model.TemplateDocumentHtml).GetHtml()
See Also