- 0751215D7E2D5A2A14A694279BB8E3330D34F47ED49B4BA29605748C8BE9BF3808E8B6A63CC80BAA3EED0C4A14940AE380553B67DDB6BB04AA7223CD986E7C69
+ 4E29388D9DBCFE61EF580E8C11D9C76FECC91FF58658DAC3036848B5254685EFC61858A4500FC252111A2AC8DF3038A8D10C95B10EEBEFA0E7AF13B80B9BC27B
mp-wp/wp-admin/js/media-upload.js
(1 . 21)(1 . 6)
8214 // send html to the post editor
8215 function send_to_editor(h) {
8216 if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) {
8217 ed.focus();
8218 if (tinymce.isIE)
8219 ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark);
8220
8221 if ( h.indexOf('[caption') === 0 ) {
8222 if ( ed.plugins.wpeditimage )
8223 h = ed.plugins.wpeditimage._do_shcode(h);
8224 } else if ( h.indexOf('[gallery') === 0 ) {
8225 if ( ed.plugins.wpgallery )
8226 h = ed.plugins.wpgallery._do_gallery(h);
8227 }
8228
8229 ed.execCommand('mceInsertContent', false, h);
8230
8231 } else if ( typeof edInsertContent == 'function' ) {
8232 if ( typeof edInsertContent == 'function' ) {
8233 edInsertContent(edCanvas, h);
8234 } else {
8235 jQuery( edCanvas ).val( jQuery( edCanvas ).val() + h );
(50 . 13)(35 . 6)
8237 });
8238 };
8239
8240 jQuery('a.thickbox').click(function(){
8241 if ( typeof tinyMCE != 'undefined' && tinyMCE.activeEditor ) {
8242 tinyMCE.get('content').focus();
8243 tinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getBookmark('simple');
8244 }
8245 });
8246
8247 $(window).resize( function() { tb_position() } );
8248 });
8249