Fixed default ACE editor type.

This commit is contained in:
Joao Alves 2021-05-20 14:10:58 +01:00
parent a377625751
commit 9f30fed708

View file

@ -4036,6 +4036,9 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
<?php if (isset($_GET['edit']) && isset($_GET['env']) && FM_EDIT_FILE):
$ext = "javascript";
$ext = pathinfo($_GET["edit"], PATHINFO_EXTENSION);
if ($ext == "") {
$ext = "text";
}
?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/<?php echo ACE_VERSION ?>/ace.min.js"></script>
<script>