Make WordPress Core


Ignore:
Timestamp:
09/22/2006 07:04:41 AM (18 years ago)
Author:
ryan
Message:

Tabbed editor from skeltoac. fixes #2829

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/inline-uploading.php

    r4144 r4206  
    411411if (!win) win = top;
    412412tinyMCE = win.tinyMCE;
    413 richedit = ( typeof tinyMCE == 'object' && tinyMCE.configs.length > 0 );
    414413function sendToEditor(n) {
    415414    o = document.getElementById('div'+n);
     
    421420    h = h.replace(new RegExp('<IMG', 'g'), '<img'); // Lowercase again
    422421    h = h.replace(new RegExp('(<img .+?")>', 'g'), '$1 />'); // XHTML
    423     if ( richedit )
     422    if ( typeof tinyMCE != 'undefined' && tinyMCE.getInstanceById('content') )
    424423        win.tinyMCE.execCommand('mceInsertContent', false, h);
    425424    else
Note: See TracChangeset for help on using the changeset viewer.