files_texteditor icon indicating copy to clipboard operation
files_texteditor copied to clipboard

Support for additional file types

Open scriptPilot opened this issue 9 years ago • 8 comments

Hello, I have edited the editor.js file to add support for phpx (php) files and added phpx to js/vendor/ace/src-noconflict/ext-modelist.js as well. I added the mime type "text/php-x" and the assignment phpx => php. But after purging the browser cache and reload ownCloud, there is still no support for the phpx files and the file is downloaded. Where I have to adjust the code as well? Regards!

scriptPilot avatar Jun 17 '16 07:06 scriptPilot

Maybe this hint still works: https://github.com/owncloud/files_texteditor/issues/109

ghost avatar Jun 22 '16 18:06 ghost

Thank you for that hint!

scriptPilot avatar Jun 23 '16 07:06 scriptPilot

Hey guys, it also would be a good idea to have an ability to edit text files without any extension. I mean such files as .gitconfig or .zshrc, or any other file

Kycko avatar Aug 02 '16 19:08 Kycko

Maybe it would be an idea to make it configurable in the preferences, which kind of files are editable and which one are downloaded.

scriptPilot avatar Aug 12 '16 07:08 scriptPilot

Yup. As I know, while using Dropbox you can not edit such files, but you can watch it's contents in web interface - it's a good solution too

Kycko avatar Aug 12 '16 14:08 Kycko

Is there any approach to handle this request? Regards!

scriptPilot avatar Sep 08 '16 07:09 scriptPilot

Contributions are welcome!

this-is-open-source

DeepDiver1975 avatar Sep 08 '16 08:09 DeepDiver1975

@DeepDiver1975 unfortunately I know only Python and Bash :( All I can do: I'm spending some time to translate ownCloud into Russian with Transifex :)

Kycko avatar Sep 08 '16 11:09 Kycko