View difference between Paste ID: vK7aBhFj and ey59Mxkb
SHOW: | | - or go back to the newest paste.
1
diff --git a/administrator/components/com_jdiction/views/translation/tmpl/form.php b/administrator/components/com_jdiction/views/translation/tmpl/form.php
2
index 49fe3ca..78dd4ec 100644
3
--- a/administrator/components/com_jdiction/views/translation/tmpl/form.php
4
+++ b/administrator/components/com_jdiction/views/translation/tmpl/form.php
5
@@ -45,8 +45,9 @@ JHtml::_('behavior.formvalidation');
6
                });
7
                //If we have a tinyMCE Editor
8
                if (typeof tinyMCE != 'undefined') {
9
-           tinyMCE.onAddEditor.add(function(mgr,ed) {
10
-                               ed.onChange.add(function(ed, e) {
11
+                       tinyMCE.on('AddEditor', function(e) {
12
+                               ed = e.editor;
13
+                               ed.on('Change', function(e) {
14
                                        jdiction_checkStatus(ed.getContent(), jQuery('#'+ed.id+'_status').prop('title'), ed.id, '#'+ed.id+'_tbl');
15
                                });
16-
                        });
16+
                        });