Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.ui.markdownEditor()#

The monster.ui.markdownEditor() method converts a simple textarea into a markdown editor.

Syntax#

monster.ui.markdownEditor(target[, options]);

Parameters#

Key Description Type Default Required
target A jQuery object to be converted into a markdown editor. jQuery true
options List of options used to instantiate a markdown editor (available options). Object(#/options) false

Description#

The monster.ui.markdownEditor() method converts a simple textarea element into a powerful markdown editor which is specified by the target parameter. The toolbar can be customized or hidden completely, please see markdownEditor docs for reference.

To initialize the default markdown editor, the only parameter needed is target:

var $target = $('#textarea-element');

monster.ui.markdownEditor($target);

Examples#

Hide toolbar#

var $target = $('#textarea-element');
var overrideOptions = {
  toolbar: false
};

monster.ui.markdownEditor($target, overrideOptions);