CKEDITOR.dialog.add("textarea",function(a){return{title:a.lang.forms.textarea.title,minWidth:350,minHeight:220,onShow:function(){delete this.textarea;var b=this.getParentEditor().getSelection().getSelectedElement();b&&"textarea"==b.getName()&&(this.textarea=b,this.setupContent(b))},onOk:function(){var e,d=this.textarea,f=!d;f&&(e=this.getParentEditor(),d=e.document.createElement("textarea"));this.commitContent(d);f&&e.insertElement(d)},contents:[{id:"info",label:a.lang.forms.textarea.title,title:a.lang.forms.textarea.title,elements:[{id:"_cke_saved_name",type:"text",label:a.lang.common.name,"default":"",accessKey:"N",setup:function(b){this.setValue(b.data("cke-saved-name")||b.getAttribute("name")||"")},commit:function(b){this.getValue()?b.data("cke-saved-name",this.getValue()):(b.data("cke-saved-name",!1),b.removeAttribute("name"))}},{type:"hbox",widths:["50%","50%"],children:[{id:"cols",type:"text",label:a.lang.forms.textarea.cols,"default":"",accessKey:"C",style:"width:50px",validate:CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed),setup:function(b){this.setValue(b.hasAttribute("cols")&&b.getAttribute("cols")||"")},commit:function(b){this.getValue()?b.setAttribute("cols",this.getValue()):b.removeAttribute("cols")}},{id:"rows",type:"text",label:a.lang.forms.textarea.rows,"default":"",accessKey:"R",style:"width:50px",validate:CKEDITOR.dialog.validate.integer(a.lang.common.validateNumberFailed),setup:function(b){this.setValue(b.hasAttribute("rows")&&b.getAttribute("rows")||"")},commit:function(b){this.getValue()?b.setAttribute("rows",this.getValue()):b.removeAttribute("rows")}}]},{id:"value",type:"textarea",label:a.lang.forms.textfield.value,"default":"",setup:function(b){this.setValue(b.$.defaultValue)},commit:function(b){b.$.value=b.$.defaultValue=this.getValue()}},{id:"required",type:"checkbox",label:a.lang.forms.textfield.required,"default":"",accessKey:"Q",value:"required",setup:function(b){this.setValue(b.getAttribute("required"))},commit:function(b){this.getValue()?b.setAttribute("required","required"):b.removeAttribute("required")}}]}]}});