Skip to main content

TinyMCE

Namespace: Wisej.Web.Ext.TinyMCE

Assembly: Wisej.Web.Ext.TinyMCE

TinyMCE (Tiny Moxiecode Content Editor) is a platform-independent, browser-based WYSIWYG editor control, written in JavaScript and released as open-source software under the LGPL by Ephox. It has the ability to convert HTML textarea fields or other HTML elements to editor instances. from: https://www.tinymce.com/

public class TinyMCE : Widget

Constructors

Instance memberTinyMCE()

Properties

Static memberBaseUrl

String: Returns or sets the base url for the TinyMCE installation

Static memberDefaultFontNames

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

Instance memberEnabled

Boolean: Gets or sets whether the editor is enabled.

Instance memberExternalPlugins

ExternalPlugin[]: Collection of external (local) plugins to register with the TinyMCE control. (Default: null)

Instance memberFontNames

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

Instance memberInitScript

String: Overridden to create our initialization script.

Instance memberOptions

Object: Returns or sets the configuration to use for this instance of the editor: https://www.tinymce.com/docs/configure/.

Instance memberPackages

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

Instance memberShowFooter

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

Instance memberShowMenuBar

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

Instance memberShowToolbar

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

Instance memberText

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

Methods

Instance memberDisableCommand(command)

Disables the specified command on the toolbar.

ParameterTypeDescription
commandStringThe name of the command to disable: i.e. "save", "bold", ...

Instance memberEnableCommand(command)

Enables the specified command on the toolbar.

ParameterTypeDescription
commandStringThe name of the command to enable: i.e. "save", "bold", ...

Instance memberExecCommand(command, showDefaultUI, argument)

Executes commands to manipulate the contents of the editable region.

ParameterTypeDescription
commandStringThe name of the command to execute. See [Command_identifiers](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand and http://archive.tinymce.com/wiki.php/TinyMCE3x:Command_identifiers) 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 and Command_identifiers 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()

Events

Instance memberCommand

CommandEventHandler Fired after the editor executes a command.