codemirror: perl support

This commit is contained in:
Usman Nasir
2020-10-22 10:45:49 +05:00
parent 2275e69971
commit e4e633d920
4 changed files with 29 additions and 1 deletions

View File

@@ -480,6 +480,7 @@ fileManager.controller('fileManagerCtrl', function ($scope, $http, FileUploader,
restoreBTN.style.display = "none";
}
// for edit button
if (allFilesAndFolders.length === 1) {
var editNode = document.getElementById("editFile");
editNode.style.pointerEvents = "auto";
@@ -813,6 +814,14 @@ fileManager.controller('fileManagerCtrl', function ($scope, $http, FileUploader,
};
/// code mirror open
$scope.editWithCodeMirror = function(){
var completePathForFile = $scope.currentPath + "/" + allFilesAndFolders[0];
var finalURL = 'https://' + window.location.hostname + ':' + window.location.port + '/filemanager/editFile?domainName=' + domainName + '&fileName=' + completePathForFile;
window.open(finalURL);
};
// uploads