wpadvocate
Forum Replies Created
-
Hello,
Yes, I am familiar with it but thought I would post something to ensure the plugin would function correctly.
Thanks for the info.
Forum: Plugins
In reply to: [Sniplets] Sniplets does not work in WP 3.3The 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: [email protected]
Enjoy!
Please ignore the previous post unless you have the “Sniplets” Plugin. This has nothing to do with the plugin “Post Sniplets”.
Apologies
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: [email protected]
Enjoy!