jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - youchenlee

Pages: [1]
1
General Questions / Re: Can't save any translations
« on: January 07, 2014, 03:58:03 pm »
You are not using the latest version... I only have a alpha for 3.2 atm.

http://forum.jdiction.org/index.php/topic,473.msg1477.html#msg1477

Got it! Thank you.

2
General Questions / Re: Can't save any translations
« on: January 07, 2014, 09:11:07 am »
Hi,

I am having the same issue and checked that I followed the instuctions carefully.

Everything is working perfectly (Title, Category etc) but the text content is not saving.

Can anyone help me out in this?

Thanks

My site has exactly the same problem with yours.
After tracing on it, I found it's caused by the error "tinyMCE.onAddEditor is undefined". As I'm using tinyMCE 4 (Joomla! 3.2), the event registration functions seems changed.
Here is a tiny patch fixed my site, but I'm not sure it's all correct, please kindly review it.

patch: http://pastebin.com/vK7aBhFj (please ignore the incorrect indentation)
Code: [Select]
diff --git a/administrator/components/com_jdiction/views/translation/tmpl/form.php b/administrator/components/com_jdiction/views/translation/tmpl/form.php
index 49fe3ca..78dd4ec 100644
--- a/administrator/components/com_jdiction/views/translation/tmpl/form.php
+++ b/administrator/components/com_jdiction/views/translation/tmpl/form.php
@@ -45,8 +45,9 @@ JHtml::_('behavior.formvalidation');
                });
                //If we have a tinyMCE Editor
                if (typeof tinyMCE != 'undefined') {
-           tinyMCE.onAddEditor.add(function(mgr,ed) {
-                               ed.onChange.add(function(ed, e) {
+                       tinyMCE.on('AddEditor', function(e) {
+                               ed = e.editor;
+                               ed.on('Change', function(e) {
                                        jdiction_checkStatus(ed.getContent(), jQuery('#'+ed.id+'_status').prop('title'), ed.id, '#'+ed.id+'_tbl');
                                });
                        });

Pages: [1]