@@ -1362,7 +1362,16 @@ function initWikiForm() {
1362
1362
} , '|' ,
1363
1363
'unordered-list' , 'ordered-list' , '|' ,
1364
1364
'link' , 'image' , 'table' , 'horizontal-rule' , '|' ,
1365
- 'clean-block' , 'preview' , 'fullscreen' , 'side-by-side' ]
1365
+ 'clean-block' , 'preview' , 'fullscreen' , 'side-by-side' , '|' ,
1366
+ {
1367
+ name : 'revert-to-textarea' ,
1368
+ action ( e ) {
1369
+ e . toTextArea ( ) ;
1370
+ } ,
1371
+ className : 'fa fa-file' ,
1372
+ title : 'Revert to simple textarea' ,
1373
+ } ,
1374
+ ]
1366
1375
} ) ;
1367
1376
$ ( simplemde . codemirror . getInputField ( ) ) . addClass ( 'js-quick-submit' ) ;
1368
1377
@@ -1466,7 +1475,16 @@ function setSimpleMDE($editArea) {
1466
1475
'code' , 'quote' , '|' ,
1467
1476
'unordered-list' , 'ordered-list' , '|' ,
1468
1477
'link' , 'image' , 'table' , 'horizontal-rule' , '|' ,
1469
- 'clean-block' , 'preview' , 'fullscreen' , 'side-by-side' ]
1478
+ 'clean-block' , 'preview' , 'fullscreen' , 'side-by-side' , '|' ,
1479
+ {
1480
+ name : 'revert-to-textarea' ,
1481
+ action ( e ) {
1482
+ e . toTextArea ( ) ;
1483
+ } ,
1484
+ className : 'fa fa-file' ,
1485
+ title : 'Revert to simple textarea' ,
1486
+ } ,
1487
+ ]
1470
1488
} ) ;
1471
1489
1472
1490
return true ;
@@ -1488,7 +1506,16 @@ function setCommentSimpleMDE($editArea) {
1488
1506
'code' , 'quote' , '|' ,
1489
1507
'unordered-list' , 'ordered-list' , '|' ,
1490
1508
'link' , 'image' , 'table' , 'horizontal-rule' , '|' ,
1491
- 'clean-block' ]
1509
+ 'clean-block' , '|' ,
1510
+ {
1511
+ name : 'revert-to-textarea' ,
1512
+ action ( e ) {
1513
+ e . toTextArea ( ) ;
1514
+ } ,
1515
+ className : 'fa fa-file' ,
1516
+ title : 'Revert to simple textarea' ,
1517
+ } ,
1518
+ ]
1492
1519
} ) ;
1493
1520
simplemde . codemirror . setOption ( 'extraKeys' , {
1494
1521
Enter : ( ) => {
0 commit comments