API Reference

Constructor

var richtext = new dhx.RichText("richtext_container", {
    mode:"document"
});

Parameters:

  • an HTML container (or the ID of an HTML container)
  • an object with configuration properties (check below)
Objects
Methods
destructor releases occupied resources
exitFullScreen exits the full screen mode
fullScreen enters the full screen mode
getEditorAPI returns the full list of the editor API
getValue gets the content entered into the RichText editor
getStats returns statistics on the entered content
paint repaints RichText
setValue sets the provided content into the RichText editor

Events Bus

detach detaches a handler from an event (which was attached before by the on() method)
fire triggers an inner event
on attaches a handler to an inner event of Vault
Events
Action fires on any action in the editor
Change fires on any change in the editor
selectionChange fires on change of selection by a user
selectionRefresh fires on automatic returning of cursor into the editor
Properties
customStats defines the logic of displaying custom statistics
mode the working mode of the RichText editor
toolbarBlocks specifies blocks of buttons that will be shown in the Richtext toolbar
Back to top