Comments (6)
This would be good, I've got plain text files that won't open even though they're text/plain mimetypes
from files_texteditor.
In my opinion, there should be a GUI version for the config. With a filter function. Should be quite easy to do. For someone who has time...
from files_texteditor.
The mime config seems to work well for specific file endings. It would be great if one could view/edit any file with the texteditor using the context menu in the regular file view (the one beside the share button, where delete, move, copy, detail functions are triggered). This would greatly improve usability for files without ending (e.g. Dockerfile).
from files_texteditor.
Hey there, I read the issues and rather than opening another one, I guess this one is mostly related to my question.
I saw that you are able to add, remove and manipulate Mimetypes in the editor.js
file. The question is, will this file be overwritten on updates? Or will it be merged?
If it will be overwritten, all changes you make are obsolete as soon as there's an update. And you would have to update the Mimetypes again.
This also seems to be a repeating issue/question.
Other related issues: #15; #24;
from files_texteditor.
Same here and I have a lot of plain text files without extensions.
Is it possible to make that working by changing the mime type config of nc?
from files_texteditor.
Well, I fixed the problems with mimetypes with the following:
https://docs.nextcloud.com/server/stable/admin_manual/configuration_mimetypes/index.html?highlight=mimetype
The mimetypemapping.json thingy at the bottom. After I reindexed my files, the files I added as text like ("cfg": ["text/plain"],
) are opened with the text editor by default.
Actually I'm not sure if it was for cfg. But it works for all endings I configured this way.
EDIT: I placed the mimetypemapping.json right in the config folder
from files_texteditor.
Related Issues (20)
- files_texteditor 2.14.0 not compatable with Nextcloud 19.0.4 HOT 1
- Old text strings in Transifex
- Replace Travis with GitHub Actions
- Cursor spacing is wrong when typing the Thai language
- YAML syntax highlighting not working HOT 1
- Editing an existing txt file on ios reset contents without the possibility to recovery HOT 2
- I can't make collaborative edition
- soft wrapping of text HOT 1
- Text input from smartphones buggy due to autosave
- DOMPurify ReferenceError for shared file preview HOT 1
- Please add Compatibility for NC24 HOT 13
- Please add »source mode« for markdown editing HOT 2
- Please add YAML front matter support to be able to add meta data to markdown files
- Please add compatibility with NC25 HOT 5
- Replace phpunit.yml with split workflows
- [FR] Toggle wide screen
- Tables always use dark mode
- Please make your app `tested`
- [Bug] Adding a new line deletes a character on Android HOT 2
- File's content transformed in to "false" content HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from files_texteditor.