CKEDITOR.dialog.add("form",function(b){var c={action:1,id:1,method:1,enctype:1,target:1};return{title:b.lang.forms.form.title,minWidth:350,minHeight:200,onShow:function(){delete this.form;var a=this.getParentEditor().elementPath().contains("form",1);a&&(this.form=a,this.setupContent(a))},onOk:function(){var d,e=this.form,f=!e;f&&(d=this.getParentEditor(),e=d.document.createElement("form"),e.appendBogus());f&&d.insertElement(e);this.commitContent(e)},onLoad:function(){function d(a){this.setValue(a.getAttribute(this.id)||"")}function f(e){this.getValue()?e.setAttribute(this.id,this.getValue()):e.removeAttribute(this.id)}this.foreach(function(a){c[a.id]&&(a.setup=d,a.commit=f)})},contents:[{id:"info",label:b.lang.forms.form.title,title:b.lang.forms.form.title,elements:[{id:"txtName",bidi:!0,type:"text",label:b.lang.common.name,"default":"",accessKey:"N",setup:function(d){this.setValue(d.data("cke-saved-name")||d.getAttribute("name")||"")},commit:function(d){this.getValue()?d.data("cke-saved-name",this.getValue()):(d.data("cke-saved-name",!1),d.removeAttribute("name"))}},{id:"action",type:"text",label:b.lang.forms.form.action,"default":"",accessKey:"T"},{type:"hbox",widths:["45%","55%"],children:[{id:"id",type:"text",label:b.lang.common.id,"default":"",accessKey:"I"},{id:"enctype",type:"select",label:b.lang.forms.form.encoding,style:"width:100%",accessKey:"E","default":"",items:[[""],["text/plain"],["multipart/form-data"],["application/x-www-form-urlencoded"]]}]},{type:"hbox",widths:["45%","55%"],children:[{id:"target",type:"select",label:b.lang.common.target,style:"width:100%",accessKey:"M","default":"",items:[[b.lang.common.notSet,""],[b.lang.common.targetNew,"_blank"],[b.lang.common.targetTop,"_top"],[b.lang.common.targetSelf,"_self"],[b.lang.common.targetParent,"_parent"]]},{id:"method",type:"select",label:b.lang.forms.form.method,accessKey:"M","default":"GET",items:[["GET","get"],["POST","post"]]}]}]}]}});