Take a look at our new Article and Redactor X editors.

Documentation

Statusbar

add #

Arguments
name String
html String

Add an item with specified name and HTML to the statusbar.

this.statusbar.add('stat', '124 <b>words</b>');

update #

Arguments
name String
html String

Add the item with specified name in the statusbar.

this.statusbar.update('stat', '125 <b>words</b>');

get #

Arguments
name String

Returns: Object Boolean

Return the wrapped Dom object of the specified item in the statusbar. If the item doesn't exist returns false.

var $item = this.statusbar.get('stat');

remove #

Arguments
name String

Remove the specified item form the statusbar.

this.statusbar.remove('stat');

getItems #

Returns: Array

Return all items in the statusbar as array.

var items = this.statusbar.getItems();

removeItems #

Remove all items from the statusbar.

this.statusbar.removeItems();

getElement #

Returns: Object

Return the wrapped Dom object of Redactor's statusbar.

var $statusbar = this.statusbar.getElement();