PluginProbe
Adminimize / 1.9.1
Adminimize v1.9.1
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
adminimize / js / tb_window.min.js

tb_window.min.js in Adminimize 1.9.1, at js/tb_window.min.js

1 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 function send_to_editor(a){"undefined"!=typeof tinyMCE&&(ed=tinyMCE.activeEditor)&&!ed.isHidden()?(ed.focus(),tinymce.isIE&&ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark),-1!=a.indexOf("[caption")&&(a=ed.plugins.wpeditimage._do_shcode(a)),ed.execCommand("mceInsertContent",!1,a)):edInsertContent(edCanvas,a),tb_remove()}jQuery(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>1720?1720:c;return b.size()&&(b.width(e-50).height(d-45),a("#TB_iframeContent").width(e-50).height(d-75),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:"20px","margin-top":"0"}),a("#TB_title").css({"background-color":"#fff",color:"#cfcfcf"})),a("a.thickbox").each(function(){var b=a(this).attr("href");b&&(b=b.replace(/&width=[0-9]+/g,""),b=b.replace(/&height=[0-9]+/g,""),a(this).attr("href",b+"&width="+(e-80)+"&height="+(d-85)))})},jQuery("a.thickbox").click(function(){"undefined"!=typeof tinyMCE&&tinyMCE.activeEditor&&(tinyMCE.get("content").focus(),tinyMCE.activeEditor.windowManager.bookmark=tinyMCE.activeEditor.selection.getBookmark("simple"))}),a(window).resize(function(){tb_position()})});