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

This commit is contained in:
Tom Needham 2011-09-28 15:15:04 +01:00
parent c6f78fbe43
commit 1f74e76d83
3 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,4 @@
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

View File

@ -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');

View File

@ -442,6 +442,10 @@ class OC_Filesystem{
}
static public function update_session_file_hash($sessionname,$sessionvalue){
$_SESSION[$sessionname] = $sessionvalue;
}
/**
* abstraction for running most basic operations
* @param string $operation