disable cut in readonly mode

pull/488/merge
nightwing 2018-03-27 23:08:49 +04:00
rodzic 5483dd8983
commit b689854468
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ define(function(require, exports, module) {
isAvailable: checkAvailable,
exec: function() { cut(); },
passEvent: true,
readOnly: true
readOnly: false,
}, plugin);
commands.addCommand({
@ -66,7 +66,8 @@ define(function(require, exports, module) {
bindKey: { mac: "Command-C", win: "Ctrl-C" },
isAvailable: checkAvailable,
exec: function(editor, args) { copy(null, args.data); },
passEvent: true
passEvent: true,
readOnly: true,
}, plugin);
commands.addCommand({
@ -75,7 +76,7 @@ define(function(require, exports, module) {
isAvailable: checkAvailable,
exec: function() { paste(); },
passEvent: true,
readOnly: true
readOnly: false,
}, plugin);
commands.addCommand({