Package: wordpress
Version: 3.0.5+dfsg-0+squeeze1
Severity: normal
Tags: squeeze patch

When I try to align the text in the TinyMCE editor inside my Wordpress
administration console, nothing happens, and an error occurs in the
Javascript console :

        Object [object Object] has no method 'mceJustify'


-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wordpress depends on:
ii  apache2                2.2.16-6+squeeze2 Apache HTTP Server metapackage
ii  apache2-mpm-prefork [h 2.2.16-6+squeeze2 Apache HTTP Server - traditional n
ii  libapache2-mod-php5    5.3.3-7+squeeze3  server-side, HTML-embedded scripti
ii  libjs-cropper          1.2.1-2           JavaScript image cropper UI
ii  libjs-jquery           1.4.2-2           JavaScript library for dynamic web
ii  libjs-prototype        1.6.1-1           JavaScript Framework for dynamic w
ii  libjs-scriptaculous    1.8.3-1           JavaScript library for dynamic web
ii  libphp-phpmailer       5.1-1             full featured email transfer class
ii  libphp-snoopy          1.2.4-2           Snoopy is a PHP class that simulat
ii  mysql-client-5.1 [mysq 5.1.49-3          MySQL database client binaries
ii  nginx [httpd]          0.7.67-3          small, but very powerful and effic
ii  php-gettext            1.0.10-1          read gettext MO files directly, wi
ii  php5                   5.3.3-7+squeeze3  server-side, HTML-embedded scripti
ii  php5-gd                5.3.3-7+squeeze3  GD module for php5
ii  php5-mysql             5.3.3-7+squeeze3  MySQL module for php5
ii  tinymce                3.3.8+dfsg0-0.1   platform independent web based Jav

Versions of packages wordpress recommends:
ii  wordpress-l10n     3.0.5+dfsg-0+squeeze1 weblog manager - language files

Versions of packages wordpress suggests:
ii  mysql-server                  5.1.49-3   MySQL database server (metapackage
ii  mysql-server-5.1 [mysql-serve 5.1.49-3   MySQL database server binaries and

-- Configuration Files:
/etc/wordpress/htaccess changed:
<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
</IfModule>


-- no debconf information
--- wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js-dist	2011-09-07 23:03:08.000000000 +0200
+++ wp-includes/js/tinymce/plugins/wordpress/editor_plugin.dev.js	2011-09-07 23:04:04.000000000 +0200
@@ -139,7 +139,7 @@
 				var n = ed.selection.getNode();
 
 				if ( n.nodeName != 'IMG' )
-					ed.editorCommands.mceJustify('JustifyLeft', 'left');
+					ed.editorCommands.execCommand('JustifyLeft', 'left');
 				else ed.plugins.wordpress.do_align(n, 'alignleft');
 			});
 
@@ -147,7 +147,7 @@
 				var n = ed.selection.getNode();
 
 				if ( n.nodeName != 'IMG' )
-					ed.editorCommands.mceJustify('JustifyRight', 'right');
+					ed.editorCommands.execCommand('JustifyRight', 'right');
 				else ed.plugins.wordpress.do_align(n, 'alignright');
 			});
 
@@ -156,7 +156,7 @@
 
 				if ( n.nodeName == 'IMG' && ( P || DL ) )
 					ed.plugins.wordpress.do_align(n, 'aligncenter');
-				else ed.editorCommands.mceJustify('JustifyCenter', 'center');
+				else ed.editorCommands.execCommand('JustifyCenter', 'center');
 			});
 
 			// Word count if script is loaded

Reply via email to