NEW_CKEDITOR.dialog.add("mathjax",(function(t){var e,i=t.lang.mathjax;return{title:i.title,minWidth:350,minHeight:100,contents:[{id:"info",elements:[{id:"equation",type:"textarea",label:i.dialogInput,onLoad:function(){var t=this;NEW_CKEDITOR.env.ie&&8==NEW_CKEDITOR.env.version||this.getInputElement().on("keyup",(function(){e.setValue("\\("+t.getInputElement().getValue()+"\\)")}))},setup:function(t){this.setValue(NEW_CKEDITOR.plugins.mathjax.trim(t.data.math))},commit:function(t){t.setData("math","\\("+this.getValue()+"\\)")}},{id:"documentation",type:"html",html:'<div style="width:100%;text-align:right;margin:-8px 0 10px"><a class="edi_mathjax_doc" href="'+i.docUrl+'" target="_black" style="cursor:pointer;color:#00B2CE;text-decoration:underline">'+i.docLabel+"</a></div>"},!(NEW_CKEDITOR.env.ie&&8==NEW_CKEDITOR.env.version)&&{id:"preview",type:"html",html:'<div style="width:100%;text-align:center;"><iframe style="border:0;width:0;height:0;font-size:20px" scrolling="no" frameborder="0" allowTransparency="true" src="'+NEW_CKEDITOR.plugins.mathjax.fixSrc+'"></iframe></div>',onLoad:function(){var i=NEW_CKEDITOR.document.getById(this.domId).getChild(0);e=new NEW_CKEDITOR.plugins.mathjax.frameWrapper(i,t)},setup:function(t){e.setValue(t.data.math)}}]}]}}));