@@ -1369,7 +1369,16 @@ function initWikiForm() {
1369
1369
} , '|' ,
1370
1370
'unordered-list' , 'ordered-list' , '|' ,
1371
1371
'link' , 'image' , 'table' , 'horizontal-rule' , '|' ,
1372
- 'clean-block' , 'preview' , 'fullscreen' , 'side-by-side' ]
1372
+ 'clean-block' , 'preview' , 'fullscreen' , 'side-by-side' , '|' ,
1373
+ {
1374
+ name : 'revert-to-textarea' ,
1375
+ action ( e ) {
1376
+ e . toTextArea ( ) ;
1377
+ } ,
1378
+ className : 'fa fa-file' ,
1379
+ title : 'Revert to simple textarea' ,
1380
+ } ,
1381
+ ]
1373
1382
} ) ;
1374
1383
$ ( simplemde . codemirror . getInputField ( ) ) . addClass ( 'js-quick-submit' ) ;
1375
1384
@@ -1473,7 +1482,16 @@ function setSimpleMDE($editArea) {
1473
1482
'code' , 'quote' , '|' ,
1474
1483
'unordered-list' , 'ordered-list' , '|' ,
1475
1484
'link' , 'image' , 'table' , 'horizontal-rule' , '|' ,
1476
- 'clean-block' , 'preview' , 'fullscreen' , 'side-by-side' ]
1485
+ 'clean-block' , 'preview' , 'fullscreen' , 'side-by-side' , '|' ,
1486
+ {
1487
+ name : 'revert-to-textarea' ,
1488
+ action ( e ) {
1489
+ e . toTextArea ( ) ;
1490
+ } ,
1491
+ className : 'fa fa-file' ,
1492
+ title : 'Revert to simple textarea' ,
1493
+ } ,
1494
+ ]
1477
1495
} ) ;
1478
1496
1479
1497
return true ;
@@ -1495,7 +1513,16 @@ function setCommentSimpleMDE($editArea) {
1495
1513
'code' , 'quote' , '|' ,
1496
1514
'unordered-list' , 'ordered-list' , '|' ,
1497
1515
'link' , 'image' , 'table' , 'horizontal-rule' , '|' ,
1498
- 'clean-block' ]
1516
+ 'clean-block' , '|' ,
1517
+ {
1518
+ name : 'revert-to-textarea' ,
1519
+ action ( e ) {
1520
+ e . toTextArea ( ) ;
1521
+ } ,
1522
+ className : 'fa fa-file' ,
1523
+ title : 'Revert to simple textarea' ,
1524
+ } ,
1525
+ ]
1499
1526
} ) ;
1500
1527
simplemde . codemirror . setOption ( 'extraKeys' , {
1501
1528
Enter : ( ) => {
0 commit comments