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:[['<img src="'+DOKU_BASE+'lib/plugins/ckgedit/ckeditor/plugins/note/icons/note_basic.png" alt="'+a.lang.note.basic+'">',"basic"],['<img src="'+DOKU_BASE+'lib/plugins/ckgedit/ckeditor/plugins/note/icons/note_important.png" alt="'+a.lang.note.important+'">',"important"],['<img src="'+DOKU_BASE+'lib/plugins/ckgedit/ckeditor/plugins/note/icons/note_tip.png" alt="'+a.lang.note.tip+'">',"tip"],['<img src="'+DOKU_BASE+'lib/plugins/ckgedit/ckeditor/plugins/note/icons/note_warning.png" alt="'+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="<note>"}else{c="<note "+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+"</note>")}}});