From 8edef30f562c5415e705b337beb94c6e65b97b20 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 29 Sep 2010 19:57:22 +0000 Subject: [PATCH] MDL-24265 adding missing dragmath dirs --- .../3.3.9.1/plugins/dragmath/img/dragmath.gif | Bin 0 -> 166 bytes .../3.3.9.1/plugins/dragmath/js/dragmath.js | 23 ++++++++++++++++++ .../3.3.9.1/plugins/dragmath/langs/en_dlg.js | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/img/dragmath.gif create mode 100644 lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/js/dragmath.js create mode 100644 lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/langs/en_dlg.js diff --git a/lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/img/dragmath.gif b/lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/img/dragmath.gif new file mode 100644 index 0000000000000000000000000000000000000000..2c3b2c4623623fad775fc94c5d4568a5776ca3c5 GIT binary patch literal 166 zcmZ?wbhEHb6k!ly*vtR~{|yc2I63|AVPH50D#=5LOB?^?&pVITl#X(6|L}1+&B8Bo96f}cVS?#1^|rQP%!`i literal 0 HcmV?d00001 diff --git a/lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/js/dragmath.js b/lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/js/dragmath.js new file mode 100644 index 00000000000..a9d69f4b0ed --- /dev/null +++ b/lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/js/dragmath.js @@ -0,0 +1,23 @@ +tinyMCEPopup.requireLangPack(); + +var DragMathDialog = { + init : function(ed) { + }, + + insert : function(file, title) { + var ed = tinyMCEPopup.editor; + var tex = document.dragmath.getMathExpression(); + + // convert < and > to entities + tex = tex.replace('<', '<'); + tex = tex.replace('>', '>'); + + if (tinymce.isIE) {tinyMCEPopup.restoreSelection();} + + ed.execCommand('mceInsertContent', false, tex); + + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(DragMathDialog.init, DragMathDialog); diff --git a/lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/langs/en_dlg.js b/lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/langs/en_dlg.js new file mode 100644 index 00000000000..adc04df1ae7 --- /dev/null +++ b/lib/editor/tinymce/tiny_mce/3.3.9.1/plugins/dragmath/langs/en_dlg.js @@ -0,0 +1,3 @@ +tinyMCE.addI18n('en.dragmath_dlg',{ +title:"Insert Equation" +}); \ No newline at end of file -- 2.43.0