Class TextEditorAddIn
- Namespace
- Dynamicweb.Extensibility
- Assembly
- Dynamicweb.dll
[Obsolete("Do not use")]
public abstract class TextEditorAddIn : ConfigurableAddIn
- Inheritance
-
TextEditorAddIn
- Inherited Members
Constructors
TextEditorAddIn()
public TextEditorAddIn()
Properties
Id
public int Id { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
SupportsFrontendEditing
protected virtual bool SupportsFrontendEditing { get; }
Property Value
UseProviderBasedEditors
public static bool UseProviderBasedEditors { get; }
Property Value
Methods
EnableFrontendEditing(string, string, int, string)
public static string EnableFrontendEditing(string content, string type, int id, string fieldName)
Parameters
Returns
EnableFrontendEditing(string, string, string, string)
public static string EnableFrontendEditing(string content, string type, string id, string fieldName)
Parameters
Returns
EnableFrontendEditing(string, string, string, string, string)
public static string EnableFrontendEditing(string content, string type, string id, string fieldName, string textType)
Parameters
Returns
GetDefaultTextEditor()
public static TextEditorAddIn GetDefaultTextEditor()
Returns
GetTextEditorAddIn(int)
public static TextEditorAddIn GetTextEditorAddIn(int id)
Parameters
idint
Returns
Render(string, int, int, string, string, string, bool)
Returns an instance of the editor.
public abstract string Render(string name, int width, int height, string value, string css, string skinPath, bool encodeOutput)
Parameters
namestring- Name of the text area.
widthint- Width of the editor. Default is 565.
heightint- Height of the editor. Default is 280.
valuestring- Text for the textarea.
cssstring- Extra CSS values to be placed in HTML header.
skinPathstring- Absolute virtual path to the skin that should be used by the editor.
encodeOutputbool- Tells the editor to HTML encode some characters before posting the editor data. The encoded chars are: &, < and >.
Returns
Render(string, string, string, string, string, string, bool)
public virtual string Render(string name, string width, string height, string value, string css, string skinPath, bool encodeOutput)
Parameters
Returns
RenderFrontendEditing(Template)
public static void RenderFrontendEditing(Template template)
Parameters
templateTemplate
RenderFrontendEditingLib(Template)
protected virtual void RenderFrontendEditingLib(Template template)
Parameters
templateTemplate
Save()
public void Save()
Serialize(object)
Serialize an object as a JSON string
protected static string Serialize(object value)
Parameters
valueobject