WYSIWYG Toolbar in Wordpress gone after activation of WPG2 Plugin

PhiJay

Joined: 2007-06-24
Posts: 4
Posted: Thu, 2009-09-17 10:29

Hello,

I have Wordpress 2.8.4 (DE) installed on my webserver and I have tried to use WPG2 3.0.7 (DE) to include images from my Gallery installation (Gallery 2.3, Core 1.3.0) into my Wordpress blog.
I have succeeded in installing and activating the plugin and I have been able to include pictures in my posts - yet the WYSIWYG toolbar (when selecting the tab "visual") is gone and there are no buttons at all.

When selecting the tab "HTML" there are some buttons for pasting HTML code, including the WPG2-Button for including stuff from Gallery (and this works just fine).

I have spent hours and hours on googling this strange kind of behavior and trying to fix it on my own but I haven't found a solution yet.

I would be grateful if anyone could help me with this issue.

Thx in advance!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2009-09-17 11:44
 
PhiJay

Joined: 2007-06-24
Posts: 4
Posted: Thu, 2009-09-17 16:28

Hi!

Thx for your reply!
I have checked out the website you linked and found this:

Quote:
Wordpress users should download WPG2 v3.0.6, which includes G2Image 3.0.3 in its entirety.

As I have installed the newer WPG2 version 3.0.7 I guess G2Image 3.0.3 is also included in my installation.

But as the developer writes on the website he has not been developing G2Image since more than a year ago and it is therefore possible that the newest version of G2Image is not compatible with the latest Wordpress edition. Is there a way to definitely confirm that?

How can I find a solution without downgrading my Wordpress installation?
Or is the only way to wait until G2Image 3.1 is finished?

 
holidaypics

Joined: 2008-06-01
Posts: 11
Posted: Wed, 2009-09-23 17:32

Hello
I've the same problem with the WPG2 Plugin.

http://www.holidaypics.org

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Wed, 2009-09-23 17:57

Hi PhiJay and holidaypics,

I'm seeing the same thing on my family website, running WP 2.8.4. (I hadn't tried to create a new post since upgrading WP, but Suprsidr alerted me to this thread. I just checked and I have the same problem...)

I'll try to figure out what's going on tonight. At first glance, it's because tinyMCE.addToLang is no longer a valid method with the version of TinyMCE in WP. The specific section of code is in the WPG2 code. I'll have to figure out the correct method and come up with a patch. Once that section of code is working, I'll need to make sure that the core G2Image code is not affected. It shouldn't be, but I'll check.

Ozgreg has a couple of other bug fixes that he needs to release sometime for WPG2, so I'll work with him to get it corrected in WPG2.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
holidaypics

Joined: 2008-06-01
Posts: 11
Posted: Wed, 2009-09-23 19:21

Hi
Thank you for create a patch for this problem.
I have now a temporary solution.
I have in the g2imageplugin.inc the start-code deleted:
.............................................................
function g2image_plugin($plugin_array) {
$plugin_array['g2image'] = get_bloginfo('wpurl').'/wp-content/plugins/wpg2/g2image/editor_plugin.js';
return $plugin_array;
}

/**
* Adds Additional WPG2 Specific Elements to the TinyMCE valid elements list
*
* @param string $valid_elements the valid elements string from the WP filter
* @return string the appended valid elements string
*/

function g2image_wp_extended_editor_mce_valid_elements($valid_elements) {
$valid_elements .= 'wpg2,wpg2id,div[class]';
return $valid_elements;
}
..............................................................................

so i can use the wordpress editor.

BR hermann

http://www.holidaypics.org

 
PhiJay

Joined: 2007-06-24
Posts: 4
Posted: Sun, 2009-09-27 14:27

Hi James T. and holidaypics! ;-)

Thank you both for your replies!
@ capt_kirk: Looking forward to get your path when it's finished. Thx!
@ holidaypics: I have commented these lines in my g2imageplugin.inc and the visual toolbar appeared again. The problem is that these lines do not only include the code for creating the visual WPG2 button but also the HTML button. So as a consequence of deleting/commenting these lines I am not able to include gallery pics anymore in my Wordpress posts. I guess I'll wait for the patch... ;-)