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/
- C#
- VB.NET
public class TinyMCE : Widget
Public Class TinyMCE
Inherits 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.
Enabled
Boolean: Gets or sets whether the editor is enabled.
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
DisableCommand(command)
Disables the specified command on the toolbar.
| Parameter | Type | Description |
|---|---|---|
| command | String | The name of the command to disable: i.e. "save", "bold", ... |
EnableCommand(command)
Enables the specified command on the toolbar.
| Parameter | Type | Description |
|---|---|---|
| command | String | The name of the command to enable: i.e. "save", "bold", ... |
ExecCommand(command, showDefaultUI, argument)
Executes commands to manipulate the contents of the editable region.
| Parameter | Type | Description |
|---|---|---|
| command | String | 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 | Boolean | Indicates whether the default user interface should be shown. This is not implemented in Mozilla. |
| argument | String | 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 | String | The name of the command to execute. See execCommand and Command_identifiers for a list of commands. |
| argument | String | 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.
Update()
Events
Command
CommandEventHandler Fired after the editor executes a command.