TinyMCE: when clicking on a character in the Charmap modal, don't close it if the Crtl key is pressed. Makes it possible to insert several special chars in a row. See #27107.

Built from https://develop.svn.wordpress.org/trunk@27179


git-svn-id: http://core.svn.wordpress.org/trunk@27041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-02-14 19:20:13 +00:00
parent eae1d5641d
commit 4aeae869dd
3 changed files with 4 additions and 2 deletions

View File

@ -313,7 +313,9 @@ tinymce.PluginManager.add('charmap', function(editor) {
if (target.nodeName == 'DIV') {
editor.execCommand('mceInsertContent', false, target.firstChild.nodeValue);
// WP, see #27107
win.close();
if ( ! e.ctrlKey ) {
win.close();
}
}
},
onmouseover: function(e) {

File diff suppressed because one or more lines are too long