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 .

git-svn-id: https://develop.svn.wordpress.org/trunk@27179 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-02-14 19:19:28 +00:00
parent 31d3af406c
commit 5a9624b834
2 changed files with 4 additions and 2 deletions
src/wp-includes/js/tinymce/plugins/charmap

@ -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