Authors:Jared Jurkiewicz
Project owner:Jared Jurkiewicz

Have you ever wanted a status bar on the editor to display things like ‘saving’ and so on? Have you ever wanted a resize handle on the editor that lets you resize it? If so, then this plugin if for you.


Once required in and enabled, this plugin provides the following features to dijit.Editor.

  • Footer toolbar with a status field that can be updated either via direct statusbar.set(“value”, “someValue”) calls or through publishing to a topid named {editor ID}_statusBar.
  • Resize handler that allows users to resize the editor. It can be disabled, when used inside a layout container that will handle resizing of the editor.


Basic Usage

Usage of this plugin is quite simple and painless.

First include the CSS for it:

@import "dojox/editor/plugins/resources/css/StatusBar.css";

Then require it into the page where you’re using the editor:


Once it has been required in, all you have to do is include it in the list of extraPlugins (or the plugins property if you’re reorganizing the toolbar) for you want to load into the editor. Be sure to list it as the last plugin. For example:

<div data-dojo-type="dijit/Editor" id="editor" data-dojo-props="extraPlugins:['statusbar']"></div>

Or a status bar without resizer:

<div data-dojo-type="dijit/Editor" id="editor" data-dojo-props="extraPlugins:[{name:'statusbar',resizer:false}]"></div>

And that’s it. The editor instance you can reference by ‘dijit.byId(“editor”)’ is now enabled with the StatusBar plugin. You can now use the status bar to display status in the following ways:

dijit.byId("someEditor").statusBar.set("value", "new Value");

// OR:

dojo.publish("someEditor_statusBar", ["Some message"]);


Basic Usage

@import "{{baseUrl}}dojox/editor/plugins/resources/css/StatusBar.css";
<b>Move the cursor around and select blockquote to blockquote a section of the document.</b>
<div data-dojo-type="dijit/Editor" height="250px" id="input" data-dojo-props="extraPlugins:['statusbar']">
blah blah & blah!
<td style="border-style:solid; border-width: 2px; border-color: gray;">One cell</td>
<td style="border-style:solid; border-width: 2px; border-color: gray;">
Two cell
<li>item one</li>
item two
Error in the documentation? Can’t find what you are looking for? Let us know!