Class PageBuilderHtmlHelperExtensions
- Namespace
- Kentico.PageBuilder.Web.Mvc
- Assembly
- Kentico.Content.Web.Mvc.dll
Provides extension methods for HtmlHelperExtensionPoint.
public static class PageBuilderHtmlHelperExtensions
- Inheritance
-
objectPageBuilderHtmlHelperExtensions
Methods
ResolveRichText(HtmlHelperExtensionPoint, string)
Resolves the dynamic text in the rich text. Text is also sanitized from potential XSS.
public static string ResolveRichText(this HtmlHelperExtensionPoint htmlHelper, string text)
Parameters
htmlHelperHtmlHelperExtensionPointThe object that provides methods to render HTML fragments.
textstringThe text to be resolved.
Returns
- string
Exceptions
- ArgumentNullException
Thrown when the
htmlHelperis null.
RichTextEditor(HtmlHelperExtensionPoint, string, string)
HTML helper for rich text inline editor.
public static void RichTextEditor(this HtmlHelperExtensionPoint htmlHelper, string propertyName, string configurationName = "default")
Parameters
htmlHelperHtmlHelperExtensionPointThe object that provides methods to render HTML fragments.
propertyNamestringName of the widget property which the inline editor edits.
configurationNamestringInline editor's configuration name.
Exceptions
- ArgumentNullException
Thrown when the
htmlHelperis null.- ArgumentException
Thrown when the
propertyNameorconfigurationNameare null or empty.