I need to access the jQuery Object that is saved as a editor parameter and I do not know how to do it. Can someone explain to me what I'm doing wrong?
(function ($) {
var test = {
config: {
editor: $( "#wp-content-wrap" )
},
init: function(){
test.add_button();
test.enable();
test.load_events();
},
enable: function(){ },
disable: function(){ },
load_events: function(){ },
add_button: function(){
test.config.editor.before(
'<div class="builder-tools">' +
'<a id="switch-button" ' +
'href="javascript:void(0);">' +
'Activar' +
'</a>' +
'</div>')
}
};
$(document).ready(function () {
test.init();
});
})(jQuery);