Enables HTML content to be previewed so that content authors can effectively see how their content will be rendered when saved.
IPreviewableContentType is defined in the Telligent.Evolution.Extensibility.Content.Version1 namespace.
Definition
interface IPreviewableContentType : IContentType { string Preview(string html, string renderTarget); }
Methods
string Preview(string html, string renderTarget);
Retrieves the preview for the specified editor-sourced HTML. The content type can make use of the PageContext to extract contextual information.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| html | string | Html | Required | ||
| renderTarget | string | Render Target | Required |