Skip to content

Commit ea473b1

Browse files
committed
Able to copy in Support.adoc
1 parent 6493516 commit ea473b1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

conf/public/js/editor-shortcuts.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function addNewCommand(key, value) {
99
exec: function (editor) {
1010
editor.insert(value);
1111
},
12-
readOnly: true
12+
readOnly: false
1313
});
1414
}
1515

@@ -30,7 +30,7 @@ editor.commands.addCommand({
3030
editor.execCommand("cut");
3131

3232
},
33-
readOnly: true
33+
readOnly: false
3434
});
3535

3636
//editor.commands.addCommand({
@@ -49,7 +49,7 @@ editor.commands.addCommand({
4949
afx.cutCopy(editor.getCopyText());
5050
editor.execCommand("copy");
5151
},
52-
readOnly: false
52+
readOnly: true
5353
});
5454

5555
editor.commands.addCommand({
@@ -61,7 +61,7 @@ editor.commands.addCommand({
6161

6262
//editor.execCommand("paste");
6363
},
64-
readOnly: true
64+
readOnly: false
6565
});
6666

6767
// editor.commands.addCommand({
@@ -108,7 +108,7 @@ editor.commands.addCommand({
108108
exec: function (editor) {
109109
editor.copyLinesDown();
110110
},
111-
readOnly: true
111+
readOnly: false
112112
});
113113

114114
var formatText = function (editor, matcher, firstCharacter, lastCharacter) {
@@ -576,7 +576,7 @@ editor.commands.addCommand({
576576
exec: function () {
577577
afx.getShortcutProvider().getProvider().addUnderline();
578578
},
579-
readOnly: true
579+
readOnly: false
580580
});
581581

582582
editor.commands.addCommand({
@@ -585,7 +585,7 @@ editor.commands.addCommand({
585585
exec: function () {
586586
afx.getShortcutProvider().getProvider().addBold();
587587
},
588-
readOnly: true
588+
readOnly: false
589589
});
590590

591591
editor.commands.addCommand({
@@ -594,7 +594,7 @@ editor.commands.addCommand({
594594
exec: function () {
595595
afx.getShortcutProvider().getProvider().addHeading();
596596
},
597-
readOnly: true
597+
readOnly: false
598598
});
599599

600600
editor.commands.addCommand({
@@ -610,7 +610,7 @@ editor.commands.addCommand({
610610
exec: function (editor) {
611611
formatText(editor, matchCode, "`", "`");
612612
},
613-
readOnly: true
613+
readOnly: false
614614
});
615615

616616
editor.commands.addCommand({
@@ -622,7 +622,7 @@ editor.commands.addCommand({
622622
exec: function () {
623623
afx.getShortcutProvider().getProvider().addItalic();
624624
},
625-
readOnly: true
625+
readOnly: false
626626
});
627627

628628
editor.commands.addCommand({
@@ -758,7 +758,7 @@ editor.commands.addCommand({
758758

759759
editor.indent();
760760
},
761-
readOnly: true
761+
readOnly: false
762762
});
763763

764764
editor.addEventListener("mousewheel", mouseWheelHandler);

0 commit comments

Comments
 (0)