TinyMCE

Wisej.Web.Ext.TinyMCE6.TinyMCE

Namespace: Wisej.Web.Ext.TinyMCE6

Assembly: Wisej.Web.Ext.TinyMCE6 (3.2.0.0)

TinyMCE gives you total control over your rich text editing. from: https://www.tinymce.com/

public class TinyMCE : Widget

Constructors

TinyMCE()

Properties

BaseUrl

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

DefaultFontNames

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

ExternalPlugins

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

FontNames

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

InitScript

String: Overridden to create our initialization script.

Options

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

Packages

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

ShowFooter

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

ShowMenuBar

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

ShowToolbar

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

Text

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

Methods

ExecCommand(command, showDefaultUI, argument)

Executes commands to manipulate the contents of the editable region.

Parameter
Type
Description

command

The 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.

showDefaultUI

Indicates whether the default user interface should be shown. This is not implemented in Mozilla.

argument

For 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.

ExecCommand(command, argument)

Executes commands to manipulate the contents of the editable region.

Parameter
Type
Description

command

The name of the command to execute. See execCommand and Command_identifiers for a list of commands.

argument

For 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

Command

CommandEventHandler Fired after the editor executes a command.

Last updated

Was this helpful?