NEW_CKEDITOR.dialog.add("hiddenfield",(function(e){return{title:e.lang.forms.hidden.title,hiddenField:null,minWidth:350,minHeight:110,getModel:function(e){return(e=e.getSelection().getSelectedElement())&&e.data("edi-real-element-type")&&"hiddenfield"==e.data("edi-real-element-type")?e:null},onShow:function(){var e=this.getParentEditor(),t=this.getModel(e);t&&(this.setupContent(e.restoreRealElement(t)),e.getSelection().selectElement(t))},onOk:function(){var e=this.getValueOf("info","_cke_saved_name"),t=this.getParentEditor();(e=NEW_CKEDITOR.env.ie&&8>NEW_CKEDITOR.document.$.documentMode?t.document.createElement('<input name="'+NEW_CKEDITOR.tools.htmlEncode(e)+'">'):t.document.createElement("input")).setAttribute("type","hidden"),this.commitContent(e);e=t.createFakeElement(e,"edi_hidden","hiddenfield");var n=this.getModel(t);return n?(e.replace(n),t.getSelection().selectElement(e)):t.insertElement(e),!0},contents:[{id:"info",label:e.lang.forms.hidden.title,title:e.lang.forms.hidden.title,elements:[{id:"_cke_saved_name",type:"text",label:e.lang.forms.hidden.name,default:"",accessKey:"N",setup:function(e){this.setValue(e.data("edi-saved-name")||e.getAttribute("name")||"")},commit:function(e){this.getValue()?e.setAttribute("name",this.getValue()):e.removeAttribute("name")}},{id:"value",type:"text",label:e.lang.forms.hidden.value,default:"",accessKey:"V",setup:function(e){this.setValue(e.getAttribute("value")||"")},commit:function(e){this.getValue()?e.setAttribute("value",this.getValue()):e.removeAttribute("value")}}]}]}}));