mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Upgrade TinyMCE to 2.1.0. Props andy. fixes #3788
git-svn-id: https://develop.svn.wordpress.org/trunk@5256 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user