/** * AddQuicktag Script to add buttons to html-editor * * @package AddQuicktag Plugin * @author Frank Bueltge * @version 06/19/2014 * @since 2.0.0 */ jQuery(document).ready(function(t){function e(t){return t.focus(),document.selection?document.selection.createRange().text:t.value.substring(t.selectionStart,t.selectionEnd)}if("undefined"!=typeof addquicktag_tags&&"undefined"!=typeof addquicktag_post_type&&"undefined"!=typeof addquicktag_pt_for_js){var n=addquicktag_tags.buttons;if("undefined"!=typeof n&&t.inArray("addquicktag_post_type",addquicktag_pt_for_js))for(var a=0;a/g,">"))},"Encode HTML Entities"),QTags.addButton("fromHTML","Decode HTML",function(t,n){QTags.insertContent(e(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))},"Decode HTML Entities")),1===o.pre[typenow]){var d=["html","javascript","css","bash","php","vb"];edButtons[109]={html:function(t){return'"}},t("body").on("change","select.language-select",function(){var e=t(this).val();edButtons[110].tagStart=e?'':""}),QTags.addButton("qt_pre","pre","
","
","","Preformatted text","108")}}}});