Sha256: be6127c7571fbbaf0a9c6300f1176a4c1650c287cf93cf514f8a467c486db756
Contents?: true
Size: 651 Bytes
Versions: 4
Compression:
Stored size: 651 Bytes
Contents
/** * $Id: EditorCommands.js 1042 2009-03-04 16:00:50Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ (function(tinymce) { tinymce.each(['Cut', 'Copy', 'Paste'], function(cmd) { tinymce.GlobalCommands.add(cmd, function() { var ed = this, doc = ed.getDoc(); try { doc.execCommand(cmd, false, null); // On WebKit the command will just be ignored if it's not enabled if (!doc.queryCommandSupported(cmd)) throw 'Error'; } catch (ex) { ed.windowManager.alert(ed.getLang('clipboard_no_support')); } }); }); })(tinymce);
Version data entries
4 entries across 4 versions & 2 rubygems