HtmlEditorSettings.SettingsPlaceholders Property
In This Article
Provides access to placeholder settings.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public HtmlEditorPlaceholdersSettings SettingsPlaceholders { get; }
#Property Value
Type | Description |
---|---|
Html |
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