Skip to main content

TinyMCE

Namespace: Wisej.Web.Ext.TinyMCE6

Assembly: Wisej.Web.Ext.TinyMCE6

TinyMCE gives you total control over your rich text editing. 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 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 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.

Events

Instance memberCommand

CommandEventHandler Fired after the editor executes a command.