CKEditor
Namespace: Wisej.Web.Ext.CKEditor
Assembly: Wisej.Web.Ext.CKEditor
CKEditor (formerly FCKeditor) is an open source WYSIWYG text editor designed to bring common word processor features directly to web pages, simplifying their content creation. from: http://ckeditor.com/
- C#
- VB.NET
public class CKEditor : Widget
Public Class CKEditor
Inherits Widget
Constructors
CKEditor()
Properties
BaseUrl
String: Returns or sets the base url for the CKEditor installation
DefaultFontNames
String[]: Returns the default buttons to show in the toolbar.
ExternalPlugins
ExternalPlugin[]: Collection of external (local) plugins to register with the CKEditor 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 CKEDITOR.config to use for this instance of the editor: CKEDITOR. Use the toolbar configuration tool at index and copy the json into the Options definition.
Packages
List<Package>: Overridden to return our list of script resources.
ReadOnly
Boolean: Returns or sets whether the user can interact with the editor. (Default: False)
ShowFooter
Boolean: Shows or hides the footer 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, 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 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.
LinkClicked
LinkClickedEventHandler Fired after a link is clicked in the editor.