Table of Contents

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

int

Name

public string Name { get; set; }

Property Value

string

SupportsFrontendEditing

protected virtual bool SupportsFrontendEditing { get; }

Property Value

bool

UseProviderBasedEditors

public static bool UseProviderBasedEditors { get; }

Property Value

bool

Methods

EnableFrontendEditing(string, string, int, string)

public static string EnableFrontendEditing(string content, string type, int id, string fieldName)

Parameters

content string
type string
id int
fieldName string

Returns

string

EnableFrontendEditing(string, string, string, string)

public static string EnableFrontendEditing(string content, string type, string id, string fieldName)

Parameters

content string
type string
id string
fieldName string

Returns

string

EnableFrontendEditing(string, string, string, string, string)

public static string EnableFrontendEditing(string content, string type, string id, string fieldName, string textType)

Parameters

content string
type string
id string
fieldName string
textType string

Returns

string

GetDefaultTextEditor()

public static TextEditorAddIn GetDefaultTextEditor()

Returns

TextEditorAddIn

GetTextEditorAddIn(int)

public static TextEditorAddIn GetTextEditorAddIn(int id)

Parameters

id int

Returns

TextEditorAddIn

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

string

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

name string
width string
height string
value string
css string
skinPath string
encodeOutput bool

Returns

string

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

Returns

string
To top