Skip to content
Snippets Groups Projects
Commit 1f74e76d authored by Tom Needham's avatar Tom Needham
Browse files

Implemented ace-edtior as an app. Basic file editing and saving supported.

parent c6f78fbe
No related branches found
No related tags found
No related merge requests found
ErrorDocument 404 //owncloud/core/templates/404.php
ErrorDocument 404 /core/templates/404.php
<IfModule mod_php5.c>
php_value upload_max_filesize 512M
php_value post_max_size 512M
SetEnv htaccessWorking true
php_value upload_max_filesize 512M
php_value post_max_size 512M
SetEnv htaccessWorking true
</IfModule>
Options -Indexes
......@@ -135,6 +135,9 @@ FileActions.register('all','Delete',function(){return OC.imagePath('core','actio
FileActions.register('all','Rename',function(){return OC.imagePath('core','actions/rename')},function(filename){
FileList.rename(filename);
});
FileActions.register('text','Edit',function(){return OC.imagePath('core','actions/rename')},function(filename){
window.location='/apps/editor/index.php?file='+filename+'&dir='+$('#dir').val();
});
//FileActions.setDefault('all','Download');
......@@ -142,4 +145,4 @@ FileActions.register('dir','Open','',function(filename){
window.location='index.php?dir='+$('#dir').val()+'/'+filename;
});
FileActions.setDefault('dir','Open');
FileActions.setDefault('dir','Open');
......@@ -441,6 +441,10 @@ class OC_Filesystem{
return $files;
}
static public function update_session_file_hash($sessionname,$sessionvalue){
$_SESSION[$sessionname] = $sessionvalue;
}
/**
* abstraction for running most basic operations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment