!function(e){"use strict";function t(){var e,t=null;return window.getSelection?(e=window.getSelection(),e.rangeCount&&(t=e.getRangeAt(0).commonAncestorContainer,1!==t.nodeType&&(t=t.parentNode))):(e=document.selection)&&"Control"!==e.type&&(t=e.createRange().parentElement()),t}function r(e){var t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}function n(){var t=null;if(document.selection)t=document.selection.createRange().parentElement();else{var r=window.getSelection();r.rangeCount>0&&(t=r.getRangeAt(0).startContainer.parentNode)}var n=e(t).contents().closest("pre").length,o=e(t).contents().closest("code").length;n&&o?e(t).contents().unwrap("code").unwrap("pre"):n?e(t).contents().unwrap("pre"):o&&e(t).contents().unwrap("code")}e.extend(!0,e.trumbowyg,{langs:{en:{preformatted:"Code sample
"},da:{preformatted:"Præformateret 
"},fr:{preformatted:"Exemple de code 
"},it:{preformatted:"Codice 
"},zh_cn:{preformatted:"代码示例 
"},ru:{preformatted:"Пример кода 
"},ja:{preformatted:"コードサンプル 
"},tr:{preformatted:"Kod örneği 
"},zh_tw:{preformatted:"代碼範例 
"},pt_br:{preformatted:"Exemple de código 
"},ko:{preformatted:"코드 예제 
"}},plugins:{preformatted:{init:function(e){var o={fn:function(){e.saveRange();var o=e.getRangeText();if(""!==o.replace(/\s/g,""))try{var a=t().tagName.toLowerCase();if("code"===a||"pre"===a)return n();e.execCmd("insertHTML","
"+r(o)+"
")}catch(p){}},tag:"pre"};e.addBtnDef("preformatted",o)}}}})}(jQuery);