CKEDITOR.dialog.add("noteDialog",function(a){return{title:"Note Properties",minWidth:400,minHeight:200,contents:[{id:"tab-basic",label:"Basic Note",elements:[{type:"radio",id:"notetype",label:a.lang.note.selectOption,items:[[''+a.lang.note.basic+'',"basic"],[''+a.lang.note.important+'',"important"],[''+a.lang.note.tip+'',"tip"],[''+a.lang.note.warning+'',"warning"]],style:"color: black","default":"basic"},{type:"text",id:"note",label:a.lang.note.content,"default":""}]}],onShow:function(){var b=a.getSelection().getSelectedText();if(b){this.getContentElement("tab-basic","note").disable();this.setValueOf("tab-basic","note",b)}else{this.text=false}},onOk:function(){var d=this;var c=d.getValueOf("tab-basic","notetype");if(c=="basic"){c=""}else{c=""}var b=this.text?this.text:d.getValueOf("tab-basic","note");if(!b){alert("Note cannot be left empty");return false}a.insertText(c+b+"")}}});