Documentation

editor.createToolbarButton(cmdname)

Creating a button in toolbar with default styles. For details, please refer to plugin example.

Syntax

editor.createToolbarButton(cmdname)

Return value

Type: String

The name of a command.

Return value

Type: HTMLElement

A toolbar button.

Example usage

var editor1 = new RichTextEditor("#div_editor1");
var btn=editor1.createToolbarButton("bold");
btn.style.width="32px"
btn.style.height="32px"
editor1.container.parentNode.insertBefore(btn,editor1.container);