WP article editor button disappears with WPG2 plugin activated

PHDM

Joined: 2010-03-13
Posts: 2
Posted: Sat, 2010-03-13 12:02

Hi,

I'm using Wordpress, Gallery and WPG2 plugin.
Since I have install WPG2 plugin I notice a modification in wordpress editor. When WPG2 plugin is activated all edition button of Visual mode disappears!

Print screen without plugin WPG2 activated :

[img]http://img690.imageshack.us/img690/6779/image2sx.jpg[/img]

Print screen with plugin WPG2 activated :

[img]http://img94.imageshack.us/img94/2128/image1zx.jpg[/img]

I haven't found any post about this problem in this forum, is someone have and idea to correct this point ?
Thanks.

WordPress : 2.9.2 fr
Plugin WPG2 : 3.0.7
Gallery : 2.3.1

 
PHDM

Joined: 2010-03-13
Posts: 2
Posted: Mon, 2010-03-15 20:08

Hi,

I made some investigations,
The problem come form source \wp-content\plugins\wpg2\g2imageplugin.inc in function g2image_addbuttons()

The call of add_filter("mce_external_plugins", "g2image_plugin"); which should logically add the WPG2 button of editor menu. But it's seem to break the JS mechanism.

Someone is familiar with this mechanism ?

Thanks ;)

 
Falcon2045

Joined: 2010-07-06
Posts: 1
Posted: Tue, 2010-07-06 23:10

I have the same problem. WPG2 v3.07 and Wordpress v3.

However, I found a "workaround", I can live with till we get a fix for this:

As PHDM mentioned, I deleted the following if-question in the g2imageplugin.inc file:


Quote:
// Add only in Rich Editor mode
if ( get_user_option('rich_editing') == 'true') {
add_filter("mce_external_plugins", "g2image_plugin");
add_filter('mce_buttons', 'g2image_wp_extended_editor_mce_buttons');
}

This way, the WPG2 Button is not loaded for the Visual Editor. However it is still present in the HTML Editor. So, I can still use the button to insert images if I switch to the HTML editor.

Hope this gets fixed soon. In the meanwhile this posting hopefully might help someone :)

 
kaskudoo

Joined: 2008-07-11
Posts: 4
Posted: Tue, 2010-11-02 20:38

Same problem here. Post above fixed the problem in disabling the G2 button in the visual editor.

The oddity:
I have two blogs, both upgraded to Wordpress 3.0.1 with (upgraded to) Gallery 2.3
The blogs are very identical, one has a few more or different other plugins ... the usual stuff, the biggest difference is that one blog is in english and the other in german (both WP and G2 installs)

The german one has the trouble with the buttons disappearing in TinyMCE and the english one never had that problem ...

I compared other files and they seem to be identical ... so, I hope someone is interested in finding a solution to this :) The above workaround luckily works - although it's not the nicest ...