/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.dialog.add("mathjax",function(t){var e,a=t.lang.mathjax;return{title:a.title,minWidth:350,minHeight:100,contents:[{id:"info",elements:[{id:"equation",type:"textarea",label:a.dialogInput,onLoad:function(){var t=this;CKEDITOR.env.ie&&8==CKEDITOR.env.version||this.getInputElement().on("keyup",function(){e.setValue("\\("+t.getInputElement().getValue()+"\\)")})},setup:function(t){this.setValue(CKEDITOR.plugins.mathjax.trim(t.data.math))},commit:function(t){t.setData("math","\\("+this.getValue()+"\\)")}},{id:"documentation",type:"html",html:'
'+a.docLabel+"
"},!(CKEDITOR.env.ie&&8==CKEDITOR.env.version)&&{id:"preview",type:"html",html:'
',onLoad:function(){var a=CKEDITOR.document.getById(this.domId).getChild(0);e=new CKEDITOR.plugins.mathjax.frameWrapper(a,t)},setup:function(t){e.setValue(t.data.math)}}]}]}});