• 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 15 replies - 1 through 15 (of 22 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Thanks a lot Skyer, I’ve implemented this in 1.1.2 as a “temporary” fix for usage with WP 3.3+.

    I have been crazy busy in the last few weeks but hope to commit a complete fix real soon. Sorry for the inconvenience.

    Thread Starter skyer2000

    (@skyer2000)

    There is no such thing as inconvenience when you are donating your time to begin with! Thank you.

    Thanks Danny and Skyer. I love this plugin and my clients love it too! I appreciate the update.

    Hmm, this code is in the 1.1.2 release of the plugin, but this doesn’t solve te problem on WordPress 3.3.1.

    yes indeed, the fix doesn’t solve the problem :-/

    Same here, doesn’t fix it.

    Thread Starter skyer2000

    (@skyer2000)

    I updated to 1.1.2 but it broke the plugin. I rolled back to 1.1.1 and manually applied the fix, and it’s back to working again.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Finally found some time to tackle this one, hopefully. WYSIWYG Widgets version 1.2 is there, which should be fully compatible with WP3.3.

    Good job Danny! Thanks.

    TheWatcher2

    (@thewatcher2)

    My version of the WYSIWYG Widgets editor (v1.2) already has the recommended fix in the plugin location /wysiwyg-widgets/backend/js/old.js, but in /wysiwyg-widgets/backend/js/wysiwyg-widgets.js there is no such line of code. Please be more specific in how to implement this fix, as the widget doesn’t work as described when using WP 3.3.1.

    Thanks,
    Greg

    I’m having the following problem.

    When I drag a WYSIWYG Widget to a sidebar, the editor cannot be used. Title can be used only. After a save and a refresh the widget can be used.
    I have made a screen recording of the behaviour.

    https://screenr.com/aWys

    jeffvand

    (@jeffvand)

    I am also still having problems with this. I am running 3.3.1 and the latest version 1.2, but still having the strange behavior when dragging it over and not being able to edit the content.

    If I save it and then refresh the widget sidebar it works fine. It is just that initial activation that seems to not be working.

    I’m not sure if I should try and implement the code above. Thoughts, suggestions? Thanks!

    jacwest

    (@jacwest)

    I’m also running 3.3.1 and the fix mentioned above is not solving anything. I suggest removing the status resolved on this post until it’s fixed.

    Same problem here, I thought it had to do with another widget and that widget author gave a good hint here: https://www.ads-software.com/support/topic/plugin-dynamic-widgets-possible-conflict-with-another-plugin

    !!It works so far for me, but use with caution!!

    Many thanks to Ovidiu and Qurl – they pinpointed the issue.

    FILE: frontend\WYSIWYG_Widgets_Widget.php

    Comment out lines 6-11.
    Add the following code beginning on line 12:

    public function __construct() {
    	parent::__construct(
    		'wysiwyg_widget', // Base ID
    		'WYSIWYG Widget', // Name
    		array( 'description' => __( 'A widget with a WYSIWYG / Rich Text editor - supports media uploading', 'text_domain' ), ) // Args
    		array('width' => 560, 'height' => 400) //size
    	);
    }

    edited 30 min later – forgot to set the size, rendering the WYSIWYG hard to use, since half of it was hidden. Fixed in code above

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