WordPress.org

Ready to get started?Download WordPress

Forums

Sniplets
Sniplets does not work in WP 3.3 (2 posts)

  1. zooeydog
    Member
    Posted 2 years ago #

    Does anyone have a version that works in WP 3.3?? Need an update asap!

    http://wordpress.org/extend/plugins/sniplets/

  2. wpadvocate
    Member
    Posted 2 years ago #

    The code below fixes ALL the compatibility issues with the 3.3? version.
    The problem was the code that added a button to the editor HTML version was outdated.
    The only file that you need to change is admin.js
    This file is located in wp-content/plugins/sniplets/resource/admin.js
    Simply replace the last function in this file named: addLoadEvent with the following code:

    addLoadEvent(function()
    {
    var toolbar = document.getElementById ("ed_toolbar");
    if (toolbar)
    {
    edButtons[edButtons.length] = new edButton('ed_sniplet' ,'sniplet','[sniplet name]','','snip');
    return false;
    }
    });

    If anyone has any problems with this or would like to drop me a note to let me know it worked, please feel free to do so at: ralph4goodhealth@gmail.com

    Enjoy!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags