Skip to main content

TinyEditor

Namespace: Wisej.Web.Ext.TinyEditor

Assembly: Wisej.Web.Ext.TinyEditor

TinyEditor is a simple JavaScript WYSIWYG editor that is both lightweight (8KB) and standalone from: TinyEditor. It can easily be customized to integrate with any website through CSS and the multitude of parameters. It handles most of the basic formatting needs and has some functionality built in to help keep the rendered markup as clean as possible.

public class TinyEditor : Widget

Constructors

Instance memberTinyEditor()

Properties

Static memberDefaultFontNames

String[]: Returns the default buttons to show in the toolbar.

Static memberDefaultToolbar

String[]: Returns the default buttons to show in the toolbar.

Instance memberFontNames

String[]: Returns or sets the font names to display in the toolbar.

Instance memberInitScript

String: Overridden to create our initialization script.

Instance memberPackages

List<Package>: Overridden to return our list of script resources.

Instance memberShowFooter

Boolean: Shows or hides the footer panel. (Default: True)

Instance memberShowToolbar

Boolean: Shows or hides the toolbar panel. (Default: True)

Instance memberSourceText

String: Returns or sets the text to use in the SOURCE button in the footer panel. (Default: "source")

Instance memberStyleSheetSource

String: Returns or sets the custom css file used by the editor. (Default: "")

Instance memberText

String: Returns or sets the HTML text associated with this control. (Default: "")

Instance memberToolbar

String[]: Returns or sets the buttons to show in the toolbar.

Instance memberWysiwygText

String: Returns or sets the text to use in the WYSIWYG button in the footer panel. (Default: "wysiwyg")

Methods

Instance memberExecCommand(command, showDefaultUI, argument)

Executes commands to manipulate the contents of the editable region.

ParameterTypeDescription
commandStringThe name of the command to execute. See execCommand for a list of commands.
showDefaultUIBooleanIndicates whether the default user interface should be shown. This is not implemented in Mozilla.
argumentStringFor commands which require an input argument (such as insertImage, for which this is the URL of the image to insert), this is a string providing that information. Specify null if no argument is needed.

Most commands affect the document's selection (bold, italics, etc.), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable, calling execCommand() will affect the currently active editable element.

Instance memberExecCommand(command, argument)

Executes commands to manipulate the contents of the editable region.

ParameterTypeDescription
commandStringThe name of the command to execute. See execCommand for a list of commands.
argumentStringFor commands which require an input argument (such as insertImage, for which this is the URL of the image to insert), this is a string providing that information. Specify null if no argument is needed.

Most commands affect the document's selection (bold, italics, etc.), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable, calling execCommand() will affect the currently active editable element.

Instance memberUpdate()

Causes the control to update the corresponding client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.