Skip to main content

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/

public class CKEditor : Widget

Constructors

Instance memberCKEditor()

Properties

Static memberBaseUrl

String: Returns or sets the base url for the CKEditor 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 CKEditor 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 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.

Instance memberPackages

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

Instance memberReadOnly

Boolean: Returns or sets whether the user can interact with the editor. (Default: False)

Instance memberShowFooter

Boolean: Shows or hides the footer 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, argument)

Executes commands to manipulate the contents of the editable region.

ParameterTypeDescription
commandStringThe name of the command to execute. See execCommand 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.

Instance memberLinkClicked

LinkClickedEventHandler Fired after a link is clicked in the editor.