Container of miscellaneous export settings for the RadEditor control.
Definition
Namespace:Telerik.Web.UI.Editor.Export
Assembly:Telerik.Web.UI.dll
Syntax:
public abstract class RadEditorExportTemplate
Inheritance: objectRadEditorExportTemplate
Derived Classes:
Inherited Members
Constructors
Fields
Properties
The content type of the editor's Page.Response object.
protected abstract string ContentType { get; }
The ExportType object passed as an argument in the EditorExportingArgs argumet, when editor's OnExport is fired.
protected abstract ExportType ExportType { get; }
The extension of the exported file.
protected abstract string FileExtension { get; }
The Encoding used in WritePageResponse method.
protected virtual Encoding ResponseWriteEncoding { get; }
XmlDocument where the editor's content is loaded in the InitializeXmlContent method.
protected XmlDocument XmlContent { get; set; }
The default xml template string used in the GenerateXmlStirng method.
protected virtual string XmlTemplate { get; }
{0} is the dtd, {1} is the title, {2} is the content.
Methods
Confugures the editor's Page.Response for writing.
protected virtual void ConfigureResponse()
This method is used to export the editor's content.
public virtual void Export()
Fires OnExportEvent of the editor.
This method is used to generate the output string, wich is generated based on the editor's content.
Initializes the XmlContent property as the first step of the template.
protected virtual void InitializeXmlContent()
The XmlContent property can be used later in the GenerateOutput method.
Writes the string output to the editor's Page.Response property.