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
id
int
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
name
string- Name of the text area.
width
int- Width of the editor. Default is 565.
height
int- Height of the editor. Default is 280.
value
string- Text for the textarea.
css
string- Extra CSS values to be placed in HTML header.
skinPath
string- Absolute virtual path to the skin that should be used by the editor.
encodeOutput
bool- 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
template
Template
RenderFrontendEditingLib(Template)
protected virtual void RenderFrontendEditingLib(Template template)
Parameters
template
Template
Save()
public void Save()
Serialize(object)
Serialize an object as a JSON string
protected static string Serialize(object value)
Parameters
value
object