Ticket #20094: 20094.diff
| File 20094.diff, 1.3 KB (added by , 15 years ago) |
|---|
-
wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js
1 2 1 (function() { 3 2 tinymce.create('tinymce.plugins.wpEditImage', { 4 3 … … 10 9 11 10 // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...'); 12 11 ed.addCommand('WP_EditImage', function() { 13 var el = ed.selection.getNode(), vp = tinymce.DOM.getViewPort(), H = vp.h, W = ( 720 < vp.w ) ? 720 : vp.w, cls = ed.dom.getAttrib(el, 'class') ;12 var el = ed.selection.getNode(), vp = tinymce.DOM.getViewPort(), H = vp.h, W = ( 720 < vp.w ) ? 720 : vp.w, cls = ed.dom.getAttrib(el, 'class'), iframeURL; 14 13 15 14 if ( cls.indexOf('mceItem') != -1 || cls.indexOf('wpGallery') != -1 || el.nodeName != 'IMG' ) 16 15 return; 17 16 18 tb_show('', url + '/editimage.html?ver=321&TB_iframe=true'); 17 iframeURL = url.replace( /^https?:\/\/[^\/]+/i, document.location.protocol + '//' + document.location.host ); 18 tb_show( '', tinymce._addVer( iframeURL + '/editimage.html' ) + '&TB_iframe=true' ); 19 19 tinymce.DOM.setStyles('TB_window', { 20 20 'width':( W - 50 )+'px', 21 21 'height':( H - 45 )+'px',
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)