Update mathajax + asciihtml see BT#13564

pull/2487/head
jmontoyaa 8 years ago
parent 64bc00be85
commit bdd7ad4518
  1. 7
      app/Resources/public/assets/ckeditor/plugins/mathjax/dialogs/mathjax.js
  2. BIN
      app/Resources/public/assets/ckeditor/plugins/mathjax/icons/hidpi/mathjax.png
  3. BIN
      app/Resources/public/assets/ckeditor/plugins/mathjax/icons/mathjax.png
  4. BIN
      app/Resources/public/assets/ckeditor/plugins/mathjax/images/loader.gif
  5. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/af.js
  6. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/ar.js
  7. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/az.js
  8. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/bg.js
  9. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/ca.js
  10. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/cs.js
  11. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/cy.js
  12. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/da.js
  13. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/de-ch.js
  14. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/de.js
  15. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/el.js
  16. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/en-gb.js
  17. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/en.js
  18. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/eo.js
  19. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/es.js
  20. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/eu.js
  21. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/fa.js
  22. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/fi.js
  23. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/fr.js
  24. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/gl.js
  25. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/he.js
  26. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/hr.js
  27. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/hu.js
  28. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/id.js
  29. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/it.js
  30. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/ja.js
  31. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/km.js
  32. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/ko.js
  33. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/ku.js
  34. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/lt.js
  35. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/nb.js
  36. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/nl.js
  37. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/no.js
  38. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/oc.js
  39. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/pl.js
  40. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/pt-br.js
  41. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/pt.js
  42. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/ro.js
  43. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/ru.js
  44. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/sk.js
  45. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/sl.js
  46. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/sq.js
  47. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/sv.js
  48. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/tr.js
  49. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/tt.js
  50. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/ug.js
  51. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/uk.js
  52. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/vi.js
  53. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/zh-cn.js
  54. 1
      app/Resources/public/assets/ckeditor/plugins/mathjax/lang/zh.js
  55. 15
      app/Resources/public/assets/ckeditor/plugins/mathjax/plugin.js
  56. 121
      main/inc/lib/javascript/ckeditor/plugins/asciimath/dev/mathjax.html
  57. 5
      main/inc/lib/javascript/ckeditor/plugins/asciimath/dialogs/fck_asciimath.html
  58. 16
      main/inc/lib/javascript/ckeditor/plugins/asciimath/dialogs/mathjax.js
  59. 82
      main/inc/lib/javascript/ckeditor/plugins/asciimath/samples/mathjax.html
  60. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/dialogs/mathjax.js
  61. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/af.js
  62. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ar.js
  63. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/bg.js
  64. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ca.js
  65. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/cs.js
  66. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/cy.js
  67. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/da.js
  68. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/de.js
  69. 4
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/el.js
  70. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/en-gb.js
  71. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/en.js
  72. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/eo.js
  73. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/es.js
  74. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/eu.js
  75. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/fa.js
  76. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/fi.js
  77. 10
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/fr.js
  78. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/gl.js
  79. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/he.js
  80. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/hr.js
  81. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/hu.js
  82. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/id.js
  83. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/it.js
  84. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ja.js
  85. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/km.js
  86. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ko.js
  87. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ku.js
  88. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/lt.js
  89. 6
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/nb.js
  90. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/nl.js
  91. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/no.js
  92. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/pl.js
  93. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/pt-br.js
  94. 4
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/pt.js
  95. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ro.js
  96. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/ru.js
  97. 8
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/sk.js
  98. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/sl.js
  99. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/sq.js
  100. 2
      main/inc/lib/javascript/ckeditor/plugins/mathjax/lang/sv.js
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,7 +0,0 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("mathjax",function(d){var c,b=d.lang.mathjax;return{title:b.title,minWidth:350,minHeight:100,contents:[{id:"info",elements:[{id:"equation",type:"textarea",label:b.dialogInput,onLoad:function(){var a=this;if(!CKEDITOR.env.ie||8!=CKEDITOR.env.version)this.getInputElement().on("keyup",function(){c.setValue("\\("+a.getInputElement().getValue()+"\\)")})},setup:function(a){this.setValue(CKEDITOR.plugins.mathjax.trim(a.data.math))},commit:function(a){a.setData("math","\\("+this.getValue()+
"\\)")}},{id:"documentation",type:"html",html:'\x3cdiv style\x3d"width:100%;text-align:right;margin:-8px 0 10px"\x3e\x3ca class\x3d"cke_mathjax_doc" href\x3d"'+b.docUrl+'" target\x3d"_black" style\x3d"cursor:pointer;color:#00B2CE;text-decoration:underline"\x3e'+b.docLabel+"\x3c/a\x3e\x3c/div\x3e"},!(CKEDITOR.env.ie&&8==CKEDITOR.env.version)&&{id:"preview",type:"html",html:'\x3cdiv style\x3d"width:100%;text-align:center;"\x3e\x3ciframe style\x3d"border:0;width:0;height:0;font-size:20px" scrolling\x3d"no" frameborder\x3d"0" allowTransparency\x3d"true" src\x3d"'+
CKEDITOR.plugins.mathjax.fixSrc+'"\x3e\x3c/iframe\x3e\x3c/div\x3e',onLoad:function(){var a=CKEDITOR.document.getById(this.domId).getChild(0);c=new CKEDITOR.plugins.mathjax.frameWrapper(a,d)},setup:function(a){c.setValue(a.data.math)}}]}]}});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 703 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 784 B

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","af",{title:"Wiskunde in TeX",button:"Wiskunde",dialogInput:"Skryf you Tex hier",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokument",loading:"laai...",pathName:"wiskunde"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","ar",{title:"الرياصيات في Tex",button:"رياضيات",dialogInput:"أكتب Tex خاصتك هنا",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"وثائق Tex",loading:"جاري التحميل...",pathName:"رياضيات"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","az",{title:"TeX ilə düsturları",button:"Riyaziyyat",dialogInput:"TeX-ini burada yazın",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX üzə nizamnaməsi",loading:"yükləmə...",pathName:"riyaziyyat"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","bg",{title:"Формули в TeX формат",button:"Формули",dialogInput:"Въведете вашите данни с TeX форматиране тук",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX документация",loading:"зареждане...",pathName:"формули"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","ca",{title:"Matemàtiques a TeX",button:"Matemàtiques",dialogInput:"Escriu el TeX aquí",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Documentació TeX",loading:"carregant...",pathName:"matemàtiques"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","cs",{title:"Matematika v TeXu",button:"Matematika",dialogInput:"Zde napište TeXový kód",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Dokumentace k TeXu",loading:"Nahrává se...",pathName:"Matematika"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","cy",{title:"Mathemateg mewn TeX",button:"Math",dialogInput:"Ysgrifennwch eich TeX yma",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Dogfennaeth TeX",loading:"llwytho...",pathName:"math"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","da",{title:"Matematik i TeX",button:"Matematik",dialogInput:"Skriv din TeX her",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokumentation",loading:"henter...",pathName:"matematik"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","de-ch",{title:"Mathematik in Tex",button:"Rechnung",dialogInput:"Schreiben Sie hier in Tex",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX-Dokumentation",loading:"Ladevorgang...",pathName:"rechnen"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","de",{title:"Mathematik in Tex",button:"Rechnung",dialogInput:"Schreiben Sie hier in Tex",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX-Dokumentation",loading:"Ladevorgang...",pathName:"rechnen"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","el",{title:"Μαθηματικά με τη γλώσσα TeX",button:"Μαθηματικά",dialogInput:"Γράψτε κώδικα TeX εδώ",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Τεκμηρίωση TeX",loading:"γίνεται φόρτωση…",pathName:"μαθηματικά"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","en-gb",{title:"Mathematics in TeX",button:"Math",dialogInput:"Write you TeX here",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX documentation",loading:"loading...",pathName:"math"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","en",{title:"Mathematics in TeX",button:"Math",dialogInput:"Write your TeX here",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX documentation",loading:"loading...",pathName:"math"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","eo",{title:"Matematiko en TeX",button:"Matematiko",dialogInput:"Skribu vian TeX tien",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokumentado",loading:"estas ŝarganta",pathName:"matematiko"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","es",{title:"Matemáticas en TeX",button:"Matemáticas",dialogInput:"Escribe tu TeX aquí",docUrl:"http://es.wikipedia.org/wiki/TeX",docLabel:"Documentación de TeX",loading:"cargando...",pathName:"matemáticas"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","eu",{title:"Matematikak TeX-en",button:"Matematika",dialogInput:"Idatzi zure TeX hemen",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokumentazioa",loading:"kargatzen...",pathName:"matematika"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","fa",{title:"ریاضیات در تک",button:"ریاضی",dialogInput:"فرمول خود را اینجا بنویسید",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"مستندسازی فرمول نویسی",loading:"بارگیری",pathName:"ریاضی"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","fi",{title:"Matematiikkaa TeX:llä",button:"Matematiikka",dialogInput:"Kirjoita TeX:iä tähän",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokumentaatio",loading:"lataa...",pathName:"matematiikka"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","fr",{title:"Formules mathématiques en TeX",button:"Maths",dialogInput:"Saisir la formule TeX ici",docUrl:"http://fr.wikibooks.org/wiki/LaTeX/Math%C3%A9matiques",docLabel:"Documentation de TeX",loading:"chargement...",pathName:"maths"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","gl",{title:"Matemáticas en TeX",button:"Matemáticas",dialogInput:"Escriba o seu TeX aquí",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Documentación de TeX",loading:"cargando...",pathName:"matemáticas"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","he",{title:"מתמטיקה בTeX",button:"מתמטיקה",dialogInput:"כתוב את הTeX שלך כאן",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"תיעוד TeX",loading:"טוען...",pathName:"מתמטיקה"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","hr",{title:"Matematika u TeXu",button:"Matematika",dialogInput:"Napiši svoj TeX ovdje",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokumentacija",loading:"učitavanje...",pathName:"matematika"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","hu",{title:"Matematika a TeX-ben",button:"Matek",dialogInput:"Írd a TeX-ed ide",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokumentáció",loading:"töltés...",pathName:"matek"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","id",{title:"Mathematics in TeX",button:"Matematika",dialogInput:"Tulis Tex anda disini",docUrl:"http:// MISSING //en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX documentation",loading:"memuat...",pathName:"math"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","it",{title:"Formule in TeX",button:"Formule",dialogInput:"Scrivere qui il proprio TeX",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Documentazione TeX",loading:"caricamento…",pathName:"formula"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","ja",{title:"TeX形式の数式",button:"数式",dialogInput:"TeX形式の数式を入力してください",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeXの解説",loading:"読み込み中…",pathName:"math"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","km",{title:"គណង TeX",button:"គណត",dialogInput:"សរសរ TeX របសនក",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"ឯកសអតថបទ TeX",loading:"កក..",pathName:"គណត"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","ko",{title:"TeX 문법 수식",button:"수식",dialogInput:"여기 TeX 를 입력하세요",docUrl:"http://ko.wikipedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:TeX_%EB%AC%B8%EB%B2%95",docLabel:"TeX 문서",loading:"불러오는 중...",pathName:"수식"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","ku",{title:"بیرکاری لە TeX",button:"بیرکاری",dialogInput:"TeXەکەت لێرە بنووسە",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"بەڵگەنامەکردنی TeX",loading:"بارکردن...",pathName:"بیرکاری"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","lt",{title:"Matematika per TeX",button:"Matematika",dialogInput:"Parašyk savo TeX čia",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX žinynas",loading:"kraunasi...",pathName:"matematika"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","nb",{title:"Matematikk i TeX",button:"Matematikk",dialogInput:"Skriv TeX-koden her",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX-dokumentasjon",loading:"laster...",pathName:"matematikk"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","nl",{title:"Wiskunde in TeX",button:"Wiskunde",dialogInput:"Typ hier uw TeX",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX documentatie",loading:"laden...",pathName:"wiskunde"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","no",{title:"Matematikk i TeX",button:"Matte",dialogInput:"Skriv TeX-koden her",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX-dokumentasjon",loading:"laster...",pathName:"matte"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","oc",{title:"Formulas matematicas en TeX",button:"Matematicas",dialogInput:"Sasir la formula TeX aicí",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Documentacion de TeX",loading:"cargament...",pathName:"matematicas"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","pl",{title:"Wzory matematyczne w TeX",button:"Wzory matematyczne",dialogInput:"Wpisz wyrażenie w TeX",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Dokumentacja TeX",loading:"ładowanie...",pathName:"matematyka"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","pt-br",{title:"Matemática em TeX",button:"Matemática",dialogInput:"Escreva seu TeX aqui",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Documentação TeX",loading:"carregando...",pathName:"Matemática"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","pt",{title:"Matemática em TeX",button:"Matemática",dialogInput:"Escreva aqui o seu TeX",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Documentação TeX",loading:"a carregar ...",pathName:"matemática"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","ro",{title:"Matematici in TeX",button:"Matematici",dialogInput:"Scrie TeX-ul aici",docUrl:"http://ro.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Documentatie TeX",loading:"încarcă...",pathName:"matematici"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","ru",{title:"Математика в TeX-системе",button:"Математика",dialogInput:"Введите здесь TeX",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX документация",loading:"загрузка...",pathName:"мат."});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","sk",{title:"Matematika v TeX-u",button:"Matematika",dialogInput:"Napíšte svoj TeX sem",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Dokumentácia TeX",loading:"načítavanie...",pathName:"matematika"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","sl",{title:"Matematika v TeX",button:"Matematika",dialogInput:"Napišite svoj TeX tukaj",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokumentacija",loading:"nalaganje...",pathName:"matematika"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","sq",{title:"Matematikë në TeX",button:"Matematikë",dialogInput:"Shkruani TeX-in tuaj këtu",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Tex dokumentimi",loading:"duke u hapur...",pathName:"matematikë"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","sv",{title:"Mattematik i TeX",button:"Matte",dialogInput:"Skriv din TeX här",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX dokumentation",loading:"laddar...",pathName:"matte"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","tr",{title:"TeX ile Matematik",button:"Matematik",dialogInput:"TeX kodunuzu buraya yazın",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX yardım dökümanı",loading:"yükleniyor...",pathName:"matematik"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","tt",{title:"TeX'та математика",button:"Математика",dialogInput:"Биредә TeX форматында аңлатмагызны языгыз",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX турыдна документлар",loading:"йөкләнә...",pathName:"математика"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","ug",{title:"TeX شەكلىدىكى ماتېماتىكا فورمۇلا تەھرىرلىگۈچ",button:"ماتېماتىكا فورمۇلا",dialogInput:"بۇ جايغا TeX ڭىزنى يېزىڭ",docUrl:"http:// MISSING //en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX documentation",loading:"loading...",pathName:"math"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","uk",{title:"Математика у TeX",button:"Математика",dialogInput:"Наберіть тут на TeX'у",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Документація про TeX",loading:"завантажується…",pathName:"математика"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","vi",{title:"Toán học bằng TeX",button:"Toán",dialogInput:"Nhập mã TeX ở đây",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"Tài liệu TeX",loading:"đang nạp...",pathName:"toán"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","zh-cn",{title:"TeX 语法的数学公式编辑器",button:"数学公式",dialogInput:"在此编写您的 TeX 指令",docUrl:"http://zh.wikipedia.org/wiki/TeX",docLabel:"TeX 语法(可以参考维基百科自身关于数学公式显示方式的帮助)",loading:"正在加载...",pathName:"数字公式"});

@ -1 +0,0 @@
CKEDITOR.plugins.setLang("mathjax","zh",{title:"以 TeX 表示數學",button:"數學",dialogInput:"請輸入 TeX",docUrl:"http://en.wikibooks.org/wiki/LaTeX/Mathematics",docLabel:"TeX 說明文件",loading:"載入中…",pathName:"數學"});

@ -1,15 +0,0 @@
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){CKEDITOR.plugins.add("mathjax",{lang:"af,ar,az,bg,ca,cs,cy,da,de,de-ch,el,en,en-gb,eo,es,eu,fa,fi,fr,gl,he,hr,hu,id,it,ja,km,ko,ku,lt,nb,nl,no,oc,pl,pt,pt-br,ro,ru,sk,sl,sq,sv,tr,tt,ug,uk,vi,zh,zh-cn",requires:"widget,dialog",icons:"mathjax",hidpi:!0,init:function(b){var c=b.config.mathJaxClass||"math-tex";b.config.mathJaxLib||CKEDITOR.error("mathjax-no-config");b.widgets.add("mathjax",{inline:!0,dialog:"mathjax",button:b.lang.mathjax.button,mask:!0,allowedContent:"span(!"+c+")",styleToAllowedContentRules:function(a){a=
a.getClassesArray();if(!a)return null;a.push("!"+c);return"span("+a.join(",")+")"},pathName:b.lang.mathjax.pathName,template:'\x3cspan class\x3d"'+c+'" style\x3d"display:inline-block" data-cke-survive\x3d1\x3e\x3c/span\x3e',parts:{span:"span"},defaults:{math:"\\(x \x3d {-b \\pm \\sqrt{b^2-4ac} \\over 2a}\\)"},init:function(){var a=this.parts.span.getChild(0);a&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("iframe")||(a=new CKEDITOR.dom.element("iframe"),a.setAttributes({style:"border:0;width:0;height:0",scrolling:"no",
frameborder:0,allowTransparency:!0,src:CKEDITOR.plugins.mathjax.fixSrc}),this.parts.span.append(a));this.once("ready",function(){CKEDITOR.env.ie&&a.setAttribute("src",CKEDITOR.plugins.mathjax.fixSrc);this.frameWrapper=new CKEDITOR.plugins.mathjax.frameWrapper(a,b);this.frameWrapper.setValue(this.data.math)})},data:function(){this.frameWrapper&&this.frameWrapper.setValue(this.data.math)},upcast:function(a,b){if("span"==a.name&&a.hasClass(c)&&!(1<a.children.length||a.children[0].type!=CKEDITOR.NODE_TEXT)){b.math=
CKEDITOR.tools.htmlDecode(a.children[0].value);var d=a.attributes;d.style=d.style?d.style+";display:inline-block":"display:inline-block";d["data-cke-survive"]=1;a.children[0].remove();return a}},downcast:function(a){a.children[0].replaceWith(new CKEDITOR.htmlParser.text(CKEDITOR.tools.htmlEncode(this.data.math)));var b=a.attributes;b.style=b.style.replace(/display:\s?inline-block;?\s?/,"");""===b.style&&delete b.style;return a}});CKEDITOR.dialog.add("mathjax",this.path+"dialogs/mathjax.js");b.on("contentPreview",
function(a){a.data.dataValue=a.data.dataValue.replace(/<\/head>/,'\x3cscript src\x3d"'+CKEDITOR.getUrl(b.config.mathJaxLib)+'"\x3e\x3c/script\x3e\x3c/head\x3e')});b.on("paste",function(a){a.data.dataValue=a.data.dataValue.replace(new RegExp("\x3cspan[^\x3e]*?"+c+".*?\x3c/span\x3e","ig"),function(a){return a.replace(/(<iframe.*?\/iframe>)/i,"")})})}});CKEDITOR.plugins.mathjax={};CKEDITOR.plugins.mathjax.fixSrc=CKEDITOR.env.gecko?"javascript:true":CKEDITOR.env.ie?"javascript:void((function(){"+encodeURIComponent("document.open();("+
CKEDITOR.tools.fixDomain+")();document.close();")+"})())":"javascript:void(0)";CKEDITOR.plugins.mathjax.loadingIcon=CKEDITOR.plugins.get("mathjax").path+"images/loader.gif";CKEDITOR.plugins.mathjax.copyStyles=function(b,c){for(var a="color font-family font-style font-weight font-variant font-size".split(" "),e=0;e<a.length;e++){var d=a[e],g=b.getComputedStyle(d);g&&c.setStyle(d,g)}};CKEDITOR.plugins.mathjax.trim=function(b){var c=b.indexOf("\\(")+2,a=b.lastIndexOf("\\)");return b.substring(c,a)};
CKEDITOR.plugins.mathjax.frameWrapper=CKEDITOR.env.ie&&8==CKEDITOR.env.version?function(b,c){b.getFrameDocument().write('\x3c!DOCTYPE html\x3e\x3chtml\x3e\x3chead\x3e\x3cmeta charset\x3d"utf-8"\x3e\x3c/head\x3e\x3cbody style\x3d"padding:0;margin:0;background:transparent;overflow:hidden"\x3e\x3cspan style\x3d"white-space:nowrap;" id\x3d"tex"\x3e\x3c/span\x3e\x3c/body\x3e\x3c/html\x3e');return{setValue:function(a){var e=b.getFrameDocument(),d=e.getById("tex");d.setHtml(CKEDITOR.plugins.mathjax.trim(CKEDITOR.tools.htmlEncode(a)));
CKEDITOR.plugins.mathjax.copyStyles(b,d);c.fire("lockSnapshot");b.setStyles({width:Math.min(250,d.$.offsetWidth)+"px",height:e.$.body.offsetHeight+"px",display:"inline","vertical-align":"middle"});c.fire("unlockSnapshot")}}}:function(b,c){function a(){f=b.getFrameDocument();f.getById("preview")||(CKEDITOR.env.ie&&b.removeAttribute("src"),f.write('\x3c!DOCTYPE html\x3e\x3chtml\x3e\x3chead\x3e\x3cmeta charset\x3d"utf-8"\x3e\x3cscript type\x3d"text/x-mathjax-config"\x3eMathJax.Hub.Config( {showMathMenu: false,messageStyle: "none"} );function getCKE() {if ( typeof window.parent.CKEDITOR \x3d\x3d \'object\' ) {return window.parent.CKEDITOR;} else {return window.parent.parent.CKEDITOR;}}function update() {MathJax.Hub.Queue([ \'Typeset\', MathJax.Hub, this.buffer ],function() {getCKE().tools.callFunction( '+
n+" );});}MathJax.Hub.Queue( function() {getCKE().tools.callFunction("+p+');} );\x3c/script\x3e\x3cscript src\x3d"'+c.config.mathJaxLib+'"\x3e\x3c/script\x3e\x3c/head\x3e\x3cbody style\x3d"padding:0;margin:0;background:transparent;overflow:hidden"\x3e\x3cspan id\x3d"preview"\x3e\x3c/span\x3e\x3cspan id\x3d"buffer" style\x3d"display:none"\x3e\x3c/span\x3e\x3c/body\x3e\x3c/html\x3e'))}function e(){m=!0;h=k;c.fire("lockSnapshot");d.setHtml(h);g.setHtml("\x3cimg src\x3d"+CKEDITOR.plugins.mathjax.loadingIcon+
" alt\x3d"+c.lang.mathjax.loading+"\x3e");b.setStyles({height:"16px",width:"16px",display:"inline","vertical-align":"middle"});c.fire("unlockSnapshot");f.getWindow().$.update(h)}var d,g,h,k,f=b.getFrameDocument(),l=!1,m=!1,p=CKEDITOR.tools.addFunction(function(){g=f.getById("preview");d=f.getById("buffer");l=!0;k&&e();CKEDITOR.fire("mathJaxLoaded",b)}),n=CKEDITOR.tools.addFunction(function(){CKEDITOR.plugins.mathjax.copyStyles(b,g);g.setHtml(d.getHtml());c.fire("lockSnapshot");b.setStyles({height:0,
width:0});var a=Math.max(f.$.body.offsetHeight,f.$.documentElement.offsetHeight),l=Math.max(g.$.offsetWidth,f.$.body.scrollWidth);b.setStyles({height:a+"px",width:l+"px"});c.fire("unlockSnapshot");CKEDITOR.fire("mathJaxUpdateDone",b);h!=k?e():m=!1});b.on("load",a);a();return{setValue:function(a){k=CKEDITOR.tools.htmlEncode(a);l&&!m&&e()}}}})();

@ -1,121 +0,0 @@
<!DOCTYPE html>
<!--
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>Widgets: MathJax &mdash; CKEditor Sample</title>
<script src="../../../ckeditor.js"></script>
<script src="../../../dev/console/console.js"></script>
<script src="../../../dev/console/focusconsole.js"></script>
<script src="../../widget/dev/console.js"></script>
<link href="../../../samples/sample.css" rel="stylesheet">
<meta name="ckeditor-sample-name" content="Mathematics">
<meta name="ckeditor-sample-group" content="Plugins">
<meta name="ckeditor-sample-description" content="Create mathematical equations in TeX and display them in visual form.">
<meta name="ckeditor-sample-isnew" content="1">
<script>
CKEDITOR.disableAutoInline = true;
document.domain = 'ckeditor.dev';
</script>
</head>
<body>
<h1 class="samples">
<a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Widgets: MathJax
</h1>
<h2>Classic (iframe-based) Sample</h2>
<textarea id="editor1" cols="10" rows="10">
<h1>Apollo 11</h1>
<div style="background:red;color:blue">
<p><strong>Apollo 11</strong>&nbsp;was the&nbsp;spaceflight&nbsp;that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a>&nbsp;and&nbsp;<a href="http://en.wikipedia.org/wiki/Buzz_Aldrin">Buzz Aldrin</a> <span class="math-tex">\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\)</span>. Armstrong became the first to step onto the lunar surface 6 hours later. Armstrong spent about two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission,&nbsp;Michael Collins, piloted the&nbsp;command spacecraft&nbsp;alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
</div>
<p>Foo foo <span class="userclass mjx">\(J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}\)</span> bar bar.</p>
<p>Launched by a&nbsp;Saturn V&nbsp;rocket from&nbsp;Kennedy Space Center&nbsp;in&nbsp;Merritt Island, Florida&nbsp;on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA">NASA</a>&#39;s&nbsp;Apollo program. The Apollo&nbsp;spacecraft&nbsp;had three parts: aCommand Module&nbsp;with a cabin for the three astronauts which was the only part which landed back on Earth; a&nbsp;Service Module&nbsp;which supported the Command Module with propulsion, electrical power, oxygen and water; and a&nbsp;Lunar Module&nbsp;for landing on the Moon. After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the&nbsp;Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the&nbsp;Pacific Ocean&nbsp;.</p>
</textarea>
<h2>Inline Sample</h2>
<div id="editor2" contenteditable="true" cols="10" rows="10">
<h1>Apollo 11</h1>
<div style="background:red;color:blue">
<p><strong>Apollo 11</strong>&nbsp;was the&nbsp;spaceflight&nbsp;that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a>&nbsp;and&nbsp;<a href="http://en.wikipedia.org/wiki/Buzz_Aldrin">Buzz Aldrin</a> <span class="math-tex">\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\)</span>. Armstrong became the first to step onto the lunar surface 6 hours later. Armstrong spent about two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission,&nbsp;Michael Collins, piloted the&nbsp;command spacecraft&nbsp;alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
</div>
<p>Foo foo <span class="userclass mjx">\(J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}\)</span> bar bar.</p>
<p>Launched by a&nbsp;Saturn V&nbsp;rocket from&nbsp;Kennedy Space Center&nbsp;in&nbsp;Merritt Island, Florida&nbsp;on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA">NASA</a>&#39;s&nbsp;Apollo program. The Apollo&nbsp;spacecraft&nbsp;had three parts: aCommand Module&nbsp;with a cabin for the three astronauts which was the only part which landed back on Earth; a&nbsp;Service Module&nbsp;which supported the Command Module with propulsion, electrical power, oxygen and water; and a&nbsp;Lunar Module&nbsp;for landing on the Moon. After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the&nbsp;Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the&nbsp;Pacific Ocean&nbsp;.</p>
</div>
<h2>Div Editing Area Sample</h2>
<textarea id="editor3" cols="10" rows="10">
<h1>Apollo 11</h1>
<div style="background:red;color:blue">
<p><strong>Apollo 11</strong>&nbsp;was the&nbsp;spaceflight&nbsp;that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a>&nbsp;and&nbsp;<a href="http://en.wikipedia.org/wiki/Buzz_Aldrin">Buzz Aldrin</a> <span class="math-tex">\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\)</span>. Armstrong became the first to step onto the lunar surface 6 hours later. Armstrong spent about two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission,&nbsp;Michael Collins, piloted the&nbsp;command spacecraft&nbsp;alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
</div>
<p>Foo foo <span class="userclass mjx">\(J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}\)</span> bar bar.</p>
<p>Launched by a&nbsp;Saturn V&nbsp;rocket from&nbsp;Kennedy Space Center&nbsp;in&nbsp;Merritt Island, Florida&nbsp;on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA">NASA</a>&#39;s&nbsp;Apollo program. The Apollo&nbsp;spacecraft&nbsp;had three parts: aCommand Module&nbsp;with a cabin for the three astronauts which was the only part which landed back on Earth; a&nbsp;Service Module&nbsp;which supported the Command Module with propulsion, electrical power, oxygen and water; and a&nbsp;Lunar Module&nbsp;for landing on the Moon. After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the&nbsp;Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the&nbsp;Pacific Ocean&nbsp;.</p>
</textarea>
<script>
CKEDITOR.stylesSet.add('my_custom_style', [
{ name: 'My Custom Block', element: 'h1', styles: { color: 'blue'} }
]);
CKEDITOR.replace( 'editor1', {
extraPlugins: 'mathjax',
height: 350,
allowedContent: true,
// mathJaxLib: './truncated-mathjax/MathJax.js?config=TeX-AMS_HTML',
mathJaxClass: 'mjx'
} );
CKEDITOR.inline( 'editor2', {
extraPlugins: 'mathjax',
height: 350,
allowedContent: true,
// mathJaxLib: './truncated-mathjax/MathJax.js?config=TeX-AMS_HTML',
mathJaxClass: 'mjx'
} );
CKEDITOR.replace( 'editor3', {
extraPlugins: 'mathjax,divarea',
height: 350,
allowedContent: true,
// mathJaxLib: './truncated-mathjax/MathJax.js?config=TeX-AMS_HTML',
mathJaxClass: 'mjx'
} );
CKCONSOLE.create( 'widget', { editor: 'editor1' } );
CKCONSOLE.create( 'focus', { editor: 'editor1' } );
CKCONSOLE.create( 'widget', { editor: 'editor2' } );
CKCONSOLE.create( 'focus', { editor: 'editor2' } );
CKCONSOLE.create( 'widget', { editor: 'editor3' } );
CKCONSOLE.create( 'focus', { editor: 'editor3' } );
</script>
<div id="footer">
<hr>
<p>
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
</p>
<p id="copy">
Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
Knabben. All rights reserved.
</p>
</div>
</body>
</html>

@ -43,6 +43,11 @@ form p { margin-top: 5px; margin-bottom: 5px; }
{
border: 1px solid gray;
font-size: 1.1em;
cursor: pointer;
}
#clickInput img {
cursor: pointer;
}
#inputText, #outputNode

@ -24,6 +24,7 @@ CKEDITOR.dialog.add( 'asciimath', function( editor ) {
id: 'equation',
type: 'textarea',
label: lang.dialogInput,
class: 'asciimath_textarea',
onLoad: function( widget ) {
var that = this;
@ -33,6 +34,10 @@ CKEDITOR.dialog.add( 'asciimath', function( editor ) {
// Add ` and ` for preview.
preview.setValue( '`' + that.getInputElement().getValue() + '`' );
} );
$('.Hand').on('click', function() {
preview.setValue( '`' + that.getInputElement().getValue() + '`' );
});
}
},
@ -67,11 +72,14 @@ CKEDITOR.dialog.add( 'asciimath', function( editor ) {
'border: 1px solid gray;' +
'font-size: 1.1em;' +
'}' +
'#clickInput img' +
'{' +
'cursor: pointer;' +
'}' +
'.Hand' +
'{' +
'cursor: pointer;' +
'cursor: hand;' +
'}' +
'</style>'+
@ -275,7 +283,7 @@ function out(td)
function Set( string )
{
var inputField = document.getElementsByTagName('textarea')[1];
inputField.value += string ;
return false ;
var inputField = document.getElementsByClassName('asciimath_textarea')[0];
inputField.value += string;
return false;
}

@ -1,82 +0,0 @@
<!DOCTYPE html>
<!--
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>Mathematical Formulas &mdash; CKEditor Sample</title>
<script src="../../../ckeditor.js"></script>
<link href="../../../samples/sample.css" rel="stylesheet">
<meta name="ckeditor-sample-name" content="Mathematics plugin">
<meta name="ckeditor-sample-group" content="Plugins">
<meta name="ckeditor-sample-description" content="Create mathematical equations in TeX and display them in visual form.">
<meta name="ckeditor-sample-isnew" content="1">
<script>
CKEDITOR.disableAutoInline = true;
</script>
</head>
<body>
<h1 class="samples">
<a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Mathematical Formulas
</h1>
<div class="description">
<p>
This sample shows the usage of the CKEditor mathematical plugin that introduces a MathJax widget. You can now use it to create or modify equations using TeX.
</p>
<p>
TeX content will be automatically replaced by a widget when you put it in a <code>&lt;span class="math-tex"&gt;</code> element. You can also add new equations by using the <strong>Math</strong> toolbar button and entering TeX content in the plugin dialog window. After you click <strong>OK</strong>, a widget will be inserted into the editor content.
</p>
<p>
The output of the editor will be plain TeX with <a href="http://www.mathjax.org/">MathJax</a> delimiters: <code>\(</code> and <code>\)</code>, as in the code below:
</p>
<pre class="samples">
&lt;span class="math-tex"&gt;\( \sqrt{1} + (1)^2 = 2 \)&lt;/span&gt;
</pre>
<p>
To transform TeX into a visual equation, a page must include the <a href="http://docs.mathjax.org/en/latest/start.html">MathJax script</a>.
</p>
<p>
In order to use the new plugin, include it in the <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraPlugins">config.extraPlugins</a></code> configuration setting.
</p>
<pre class="samples">
CKEDITOR.replace( '<em>textarea_id</em>', {
<strong>extraPlugins: 'mathjax'</strong>
} );
</pre>
<p id="ie8-warning">
Please note that this plugin is not compatible with Internet Explorer 8.
</p>
</div>
<textarea id="editor1" cols="10" rows="10">
&lt;p&gt;The following equations are represented in the HTML source code as LaTeX expressions.&lt;/p&gt;&lt;h1&gt;The Cauchy-Schwarz Inequality&lt;/h1&gt;&lt;p&gt;&lt;span class=&quot;math-tex&quot;&gt;\( \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \)&lt;/span&gt;&lt;/p&gt;&lt;h1&gt;The probability of getting &lt;span class=&quot;math-tex&quot;&gt;\(k\)&lt;/span&gt; heads when flipping &lt;span class=&quot;math-tex&quot;&gt;\(n\)&lt;/span&gt; coins is&lt;/h1&gt;&lt;p&gt;&lt;span class=&quot;math-tex&quot;&gt;\(P(E) = {n \choose k} p^k (1-p)^{ n-k} \)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Finally, while displaying equations is useful for demonstration purposes, the ability to mix math and text in a paragraph is also important. This expression &lt;span class=&quot;math-tex&quot;&gt;\(\sqrt{3x-1}+(1+x)^2\)&lt;/span&gt; is an example of an inline equation. As you see, MathJax equations can be used this way as well, without disturbing the spacing between the lines.&lt;/p&gt;
</textarea>
<script>
CKEDITOR.replace( 'editor1', {
extraPlugins: 'mathjax',
height: 350
} );
if ( CKEDITOR.env.ie && CKEDITOR.env.version == 8 )
document.getElementById( 'ie8-warning' ).className = 'warning';
</script>
<div id="footer">
<hr>
<p>
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
</p>
<p id="copy">
Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
Knabben. All rights reserved.
</p>
</div>
</body>
</html>

@ -1,5 +1,5 @@
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'af', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ar', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'bg', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ca', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'cs', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'cy', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'da', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'de', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'el', {
@ -8,6 +8,6 @@ CKEDITOR.plugins.setLang( 'mathjax', 'el', {
dialogInput: 'Γράψτε κώδικα TeX εδώ',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'Τεκμηρίωση TeX',
loading: 'γίνεται φόρτωση...',
loading: 'γίνεται φόρτωση',
pathName: 'μαθηματικά'
} );

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'en-gb', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'en', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'eo', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'es', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'eu', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'fa', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'fi', {

@ -1,13 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'fr', {
title: 'Mathématiques au format TeX',
button: 'Math',
title: 'Formules mathématiques en TeX',
button: 'Maths',
dialogInput: 'Saisir la formule TeX ici',
docUrl: 'http://fr.wikibooks.org/wiki/LaTeX/Math%C3%A9matiques',
docLabel: 'Documentation du format TeX',
docLabel: 'Documentation de TeX',
loading: 'chargement...',
pathName: 'math'
pathName: 'maths'
} );

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'gl', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'he', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'hr', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'hu', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'id', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'it', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ja', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'km', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ko', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ku', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'lt', {

@ -1,13 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'nb', {
title: 'Matematikk i TeX',
button: 'Matte',
button: 'Matematikk',
dialogInput: 'Skriv TeX-koden her',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'TeX-dokumentasjon',
loading: 'laster...',
pathName: 'matte'
pathName: 'matematikk'
} );

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'nl', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'no', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'pl', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'pt-br', {

@ -1,11 +1,11 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'pt', {
title: 'Matemática em TeX',
button: 'Matemática',
dialogInput: 'Escreva aqui o seu Tex',
dialogInput: 'Escreva aqui o seu TeX',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'Documentação TeX',
loading: 'a carregar ...',

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ro', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'ru', {

@ -1,13 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'sk', {
title: 'Matematika v TeX',
button: 'Matika',
title: 'Matematika v TeX-u',
button: 'Matematika',
dialogInput: 'Napíšte svoj TeX sem',
docUrl: 'http://en.wikibooks.org/wiki/LaTeX/Mathematics',
docLabel: 'Dokumentácia TeX',
loading: 'načítavanie...',
pathName: 'matika'
pathName: 'matematika'
} );

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'sl', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'sq', {

@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'mathjax', 'sv', {

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save