(function(){var B=function(E,C,D){var F=E.getSelection().getSelectedText();E.insertHtml(C+F+D)};var A=function(D,C){return B(D,"["+C.toUpperCase()+"]","[/"+C.toUpperCase()+"]")};CKEDITOR.plugins.add("vbwrapbuttons",{init:function(C){var D=function(E){return{exec:function(F){A(F,E)}}};C.addCommand("quote",D("quote"));C.ui.addButton("Quote",{label:vBulletin.phrase.get("wrap_x_tags","QUOTE"),icon:window.pageData.baseurl+"/core/images/editor/quote.png",command:"quote"});C.addCommand("code",D("code"));C.ui.addButton("Code",{label:vBulletin.phrase.get("wrap_x_tags","CODE"),icon:window.pageData.baseurl+"/core/images/editor/code.png",command:"code"});C.addCommand("html",D("html"));C.ui.addButton("Html",{label:vBulletin.phrase.get("wrap_x_tags","HTML"),icon:window.pageData.baseurl+"/core/images/editor/html.png",command:"html"});C.addCommand("php",D("php"));C.ui.addButton("Php",{label:vBulletin.phrase.get("wrap_x_tags","PHP"),icon:window.pageData.baseurl+"/core/images/editor/php.png",command:"php"})}})})();