mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
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 git-svn-id: http://core.svn.wordpress.org/trunk@23046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
edf9769d26
commit
c9db63ab1e
|
|
@ -307,6 +307,11 @@
|
|||
ed.plugins.wordpress._hideButtons();
|
||||
});
|
||||
|
||||
ed.onKeyDown.add(function(ed, e){
|
||||
if ( e.which == tinymce.VK.DELETE || e.which == tinymce.VK.BACKSPACE )
|
||||
ed.plugins.wordpress._hideButtons();
|
||||
});
|
||||
|
||||
closeOnClick = function(e){
|
||||
var id;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user