• Here is a fix to get the editor working on the latest version of WordPress:

    Open /wp-content/plugins/wysiwyg-widgets/backend/js/wysiwyg-widgets.js

    Insert new line about line 75 (tinyMCE.execCommand(“mceAddControl”, false, id);)

    tinyMCE.init({ mode : "exact", theme : "advanced", theme_advanced_toolbar_location : "top" });

    So that code block should now read as:

    activate_editor : function (id) {
            jQuery('#'+id).addClass("mceEditor");
            if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
                WYSIWYG_Widgets.deactivate_editor(id);
                tinyMCE.init({ mode : "exact", theme : "advanced", theme_advanced_toolbar_location : "top" });
                tinyMCE.execCommand("mceAddControl", false, id);
            }
        },

    https://www.ads-software.com/extend/plugins/wysiwyg-widgets/

Viewing 7 replies - 16 through 22 (of 22 total)
  • I must be doing something wrong because if I edit that file as you said, I get this error:

    [Tue Apr 24 19:51:56 2012] [warn] [client 196.215.129.45] mod_fcgid: stderr: PHP Parse error: syntax error, unexpected T_ARRAY in /var/www/clients/client20/web36/web/wp-content/plugins/wysiwyg-widgets/frontend/WYSIWYG_Widgets_Widget.php on line 17, referer: https://www.premaman.co.za/wp-admin/widgets.php

    This is how my file looks after editing:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    I can’t see any immediate difference between your snippet and mine, beyond commenting method (which really shouldn’t matter)

    If you’d like, I can send you the full file Ovidiu?

    can you post it onto pastebin.com please?
    I’d really appreciate that.

    Absolutely. My apologies for not doing that in the first place ??

    https://pastebin.com/ysAS14E1

    thanks. no mroe errors but it is only partially working for me: it doesn’t collapse anymore but I can only use the HTMl editor, not the visual editor.
    good enough for the time being ??

    Thanks for helping out!

    Were you running the most recent version of this plugin, before the edits, Ovidiu?

    I started with v1.2, on the off-chance this is the difference in results between your site and mine.

    1.2 here as well, but as you can see I have this thread and the other one linked above where I mentioned some probs. So it might as well be the other plugin interfering.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘[Plugin: WYSIWYG Widgets] Fix for WordPress 3.3.1’ is closed to new replies.