Make WordPress Core

Changeset 4101


Ignore:
Timestamp:
08/16/2006 02:50:03 AM (20 years ago)
Author:
ryan
Message:

Autosave focus grab fix from masquerade. fixes #3040

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/autosave.js.php

    r4098 r4101  
    8484                autosaveAjax.setVar("content", form.content.value);
    8585        } else {
     86                if(tinyMCE.selectedInstance.spellcheckerOn) return;
    8687                tinyMCE.wpTriggerSave();
    8788                autosaveAjax.setVar("content", form.content.value);
  • trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js

    r4085 r4101  
    425425
    426426        tinyMCE._customCleanup(this, "submit_content_dom", this.contentWindow.document.body);
    427         var htm = skip_cleanup ? this.getBody().innerHTML : tinyMCE._cleanupHTML(this, this.getDoc(), this.settings, this.getBody(), tinyMCE.visualAid, true, true);
     427        tinyMCE.selectedInstance.getWin().oldfocus=tinyMCE.selectedInstance.getWin().focus;
     428        tinyMCE.selectedInstance.getWin().focus=function() {};
     429        var htm = tinyMCE._cleanupHTML(this, this.getDoc(), this.settings, this.getBody(), tinyMCE.visualAid, true, true);
     430        tinyMCE.selectedInstance.getWin().focus=tinyMCE.selectedInstance.getWin().oldfocus;
    428431        htm = tinyMCE._customCleanup(this, "submit_content", htm);
    429432
  • trunk/wp-includes/script-loader.php

    r4098 r4101  
    1616                $this->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '3517' );
    1717                $this->add( 'colorpicker', '/wp-includes/js/colorpicker.js', false, '3517' );
    18                 $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '08112006' );
     18                $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '08152006' );
    1919                $this->add( 'wp_tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('tiny_mce'), '04162006' );
    2020                $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0');
    21                 $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4096');
     21                $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4101');
    2222                if ( is_admin() ) {
    2323                        $this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' );
Note: See TracChangeset for help on using the changeset viewer.