From 4e4739b91865e5ff1c21c2787adf9be3ad947161 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 11 Dec 2005 01:32:05 +0000 Subject: [PATCH] Gecko paste fix. fixes #2051 git-svn-id: http://svn.automattic.com/wordpress/trunk@3287 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/tinymce/tiny_mce.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/js/tinymce/tiny_mce.js b/wp-includes/js/tinymce/tiny_mce.js index 27ce403ef8..3f6c6bf3cf 100644 --- a/wp-includes/js/tinymce/tiny_mce.js +++ b/wp-includes/js/tinymce/tiny_mce.js @@ -1027,6 +1027,10 @@ TinyMCE.prototype.handleEvent = function(e) { tinyMCE.cancelEvent(e); return false; } + + if (e.charCode == 118) { // Ctrl+V + tinyMCE.selectedInstance.execCommand("mceInsertContent", false, ''); + } } // Return key pressed