Customization

Features, buttons, toolbar layout etc.

These properties and methods can be used to customize the appearance and functionality of the editor.

Examples: 

Customizing the toolbar layout:

// remove the default toolbar layout
$editor->clearToolbarLayout();

// add a new toolbar
$editor->addToolbar('toolbar1', array('styles','separator','bold','italic','underline','superscript','subscript','strikethrough''separator','image','link'));

addButton
addButton Availability: >= 2.0 Type: Object Method Description: Registers a
addContextMenuItem
addFont
addFont Availability: >= 3.0 Type: Object Method Description: Adds a
addRegisteredButton
addRegisteredButton Availability: >= 3.0 Type: Object Method Description: Adds a
addSeparator
addSeparator Availability: >= 3.0 Type: Object Method Description: Registers a
addSize
addSize Availability: >= 3.0 Type: Object Method Description: Adds a
addSpacer
addSpacer Availability: >= 2.0 Type: Object Method Description: Registers a
addstyle
addStyle Availability: >= 3.0 Type: Object Property Description: Adds a
addToolbar
addToolbar Availability: >= 3.0 Type: Object Method Description: Adds a
addJSButtonStateHandler
addJSButtonStateHandler Availability: >= 3.0 Type: Object Method Description: Registers a
addJSEditorEvent
addJSEditorEvent Availability: >= 3.0 Type: Object Method Description: Allows you
addJSFormattingHandler
addJSFormattingHandler Availability: >= 3.0 Type: Object Method Description: Registers a
addJSFormattingValueHandler
addJSFormattingValueHandler Availability: >= 3.0 Type: Object Method Description: Syntax:
addJSHTMLFilter
addJSHTMLFilter Availability: >= 3.0 Type: Object Method Description: Allows you
addJSPlugin
addJSPlugin Availability: >= 3.0 Type: Object Method Description: Tells the
appendToQueryStrings
appendToQueryStrings Availability: >= 3.0 Type: Object Property Description: Sets additional
buttonIsEnabled
buttonIsEnabled Availability: >= 3.0 Type: Object Method Description: Returns true
clearContextMenu
clearContextMenu Availability: >= 3.0 Type: Object Method Description: Empties the
clearFontMenu
clearFontMenu Availability: >= 3.0 Type: Object Method Description: Empties the
clearSizeMenu
clearSizeMenu Availability: >= 3.0 Type: Object Method Description: Empties the
clearStylesMenu
clearStylesMenu Availability: >= 3.0 Type: Object Method Description: Empties the
colorSwatches
colorSwatches Availability: >= 3.0 Type: Object Property Description: Sets custom
clearToolbarLayout
clearToolbarLayout Availability: >= 3.0 Type: Object Method Description: Empties the
contextMenu
contextMenu Availability: >= 3.0 Type: Object Property Description: Sets the
disableBookmarkMngr
disableBookmarkMngr Availability: >= 2.0 Type: Object Property Description: Depreciated, please
1 2 3  [»] Next