Changeset 4206 for trunk/wp-admin/inline-uploading.php
- Timestamp:
- 09/22/2006 07:04:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/inline-uploading.php
r4144 r4206 411 411 if (!win) win = top; 412 412 tinyMCE = win.tinyMCE; 413 richedit = ( typeof tinyMCE == 'object' && tinyMCE.configs.length > 0 );414 413 function sendToEditor(n) { 415 414 o = document.getElementById('div'+n); … … 421 420 h = h.replace(new RegExp('<IMG', 'g'), '<img'); // Lowercase again 422 421 h = h.replace(new RegExp('(<img .+?")>', 'g'), '$1 />'); // XHTML 423 if ( richedit)422 if ( typeof tinyMCE != 'undefined' && tinyMCE.getInstanceById('content') ) 424 423 win.tinyMCE.execCommand('mceInsertContent', false, h); 425 424 else
Note: See TracChangeset
for help on using the changeset viewer.