//>>built
define("dojox/editor/plugins/StatusBar","dojo,dijit,dojox,dijit/_Widget,dijit/_TemplatedMixin,dijit/_editor/_Plugin,dojo/_base/connect,dojo/_base/declare,dojox/layout/ResizeHandle".split(","),function(b,e,d,f,g,h){b.experimental("dojox.editor.plugins.StatusBar");b.declare("dojox.editor.plugins._StatusBar",[f,g],{templateString:'<div class="dojoxEditorStatusBar"><table><tbody><tr><td class="dojoxEditorStatusBarText" tabindex="-1" aria-role="presentation" aria-live="aggressive"><span dojoAttachPoint="barContent">&nbsp;</span></td><td><span dojoAttachPoint="handle"></span></td></tr></tbody><table></div>',
_getValueAttr:function(){return this.barContent.innerHTML},_setValueAttr:function(a){a?(a=b.trim(a))||(a="&nbsp;"):a="&nbsp;";this.barContent.innerHTML=a}});b.declare("dojox.editor.plugins.StatusBar",h,{statusBar:null,resizer:!0,setEditor:function(a){this.editor=a;this.statusBar=new d.editor.plugins._StatusBar;this.resizer?(this.resizeHandle=new d.layout.ResizeHandle({targetId:this.editor,activeResize:!0},this.statusBar.handle),this.resizeHandle.startup()):b.style(this.statusBar.handle.parentNode,
"display","none");var c=null;a.footer.lastChild&&(c="after");b.place(this.statusBar.domNode,a.footer.lastChild||a.footer,c);this.statusBar.startup();this.editor.statusBar=this;this._msgListener=b.subscribe(this.editor.id+"_statusBar",b.hitch(this,this._setValueAttr))},_getValueAttr:function(){return this.statusBar.get("value")},_setValueAttr:function(a){this.statusBar.set("value",a)},set:function(a,c){if(a){var d="_set"+a.charAt(0).toUpperCase()+a.substring(1,a.length)+"Attr";if(b.isFunction(this[d]))this[d](c);
else this[a]=c}},get:function(a){if(a){var c="_get"+a.charAt(0).toUpperCase()+a.substring(1,a.length)+"Attr";return b.isFunction(this[c])?this[c]():this[a]}return null},destroy:function(){this.statusBar&&(this.statusBar.destroy(),delete this.statusBar);this.resizeHandle&&(this.resizeHandle.destroy(),delete this.resizeHandle);this._msgListener&&(b.unsubscribe(this._msgListener),delete this._msgListener);delete this.editor.statusBar}});b.subscribe(e._scopeName+".Editor.getPlugin",null,function(a){if(!a.plugin&&
"statusbar"===a.args.name.toLowerCase())a.plugin=new d.editor.plugins.StatusBar({resizer:"resizer"in a.args?a.args.resizer:!0})});return d.editor.plugins.StatusBar});