Make WordPress Core

Changeset 23046


Ignore:
Timestamp:
12/04/2012 10:42:26 PM (13 years ago)
Author:
ryan
Message:

When deleting an image in the editor with the delete or backspace keys, hide the edit and delete popup buttons.

Props azaozz, lessbloat
fixes #22717

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js

    r22883 r23046  
    308308            });
    309309
     310            ed.onKeyDown.add(function(ed, e){
     311                if ( e.which == tinymce.VK.DELETE || e.which == tinymce.VK.BACKSPACE )
     312                    ed.plugins.wordpress._hideButtons();
     313            });
     314
    310315            closeOnClick = function(e){
    311316                var id;
Note: See TracChangeset for help on using the changeset viewer.