text: !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),e=function(t){return t.getParam("code_dialog_height",Math.min(n.DOM.getViewPort().h-200,500))},o=function(t){var n=function(t){return t.getParam("code_dialog_width",600)}(t),o=e(t);t.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:n,minHeight:o,spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(n){!function(t,n){t.focus(),t.undoManager.transact((function(){t.setContent(n)})),t.selection.setCursorLocation(),t.nodeChanged()}(t,n.data.code)}}).find("#code").value(function(t){return t.getContent({source_view:!0})}(t))};t.add("code",(function(t){return function(t){t.addCommand("mceCodeEditor",(function(){o(t)}))}(t),function(t){t.addButton("code",{icon:"code",tooltip:"Source code",onclick:function(){o(t)}}),t.addMenuItem("code",{icon:"code",text:"Source code",onclick:function(){o(t)}})}(t),{}}))}();