@@ -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
5555editor . 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
114114var 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
582582editor . 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
591591editor . 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
600600editor . 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
616616editor . 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
628628editor . commands . addCommand ( {
@@ -758,7 +758,7 @@ editor.commands.addCommand({
758758
759759 editor . indent ( ) ;
760760 } ,
761- readOnly : true
761+ readOnly : false
762762} ) ;
763763
764764editor . addEventListener ( "mousewheel" , mouseWheelHandler ) ;
0 commit comments