summaryrefslogtreecommitdiffstats
path: root/wp-includes/js/tinymce/plugins/paste
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/js/tinymce/plugins/paste')
-rw-r--r--wp-includes/js/tinymce/plugins/paste/editor_plugin.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/wp-includes/js/tinymce/plugins/paste/editor_plugin.js b/wp-includes/js/tinymce/plugins/paste/editor_plugin.js
index 3ef1d7a..5e884cf 100644
--- a/wp-includes/js/tinymce/plugins/paste/editor_plugin.js
+++ b/wp-includes/js/tinymce/plugins/paste/editor_plugin.js
@@ -1,5 +1,5 @@
/**
- * $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $
+ * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
@@ -14,7 +14,7 @@ var TinyMCE_PastePlugin = {
longname : 'Paste text/word',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_paste.html',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
},
@@ -24,6 +24,16 @@ var TinyMCE_PastePlugin = {
tinyMCE.addEvent(inst.getBody(), "paste", TinyMCE_PastePlugin._handlePasteEvent);
},
+ handleEvent : function(e) {
+ // Force paste dialog if non IE browser
+ if (!tinyMCE.isRealIE && tinyMCE.getParam("paste_auto_cleanup_on_paste", false) && e.ctrlKey && e.keyCode == 86 && e.type == "keydown") {
+ window.setTimeout('tinyMCE.selectedInstance.execCommand("mcePasteText",true)', 1);
+ return tinyMCE.cancelEvent(e);
+ }
+
+ return true;
+ },
+
getControlHTML : function(cn) {
switch (cn) {
case "pastetext":