files_markdown
files_markdown copied to clipboard
Problems with the Editor and not-Markdown Files
Copy from https://github.com/nextcloud/server/issues/20165
If I open any Text-File in the interface, that is not a Markdown-File, the Editor loads infinitely. A look into the Network-Traffic shows that the content of the file is sent to the Frontend. *.txt-Files sometimes work but Files like *.java, *.xml or *.yaml won’t.
Steps to reproduce
Upload any non Markdown-File Open the Network-Tab of the Developer tools in your Browser (optional, can be skipped) Try to open the file within the Web-Interface Wait
Expected behaviour
The content of the file is displayed Actual behaviour
Infinite loading animation
Happens to me to as soon as the file opened is some source code.
workaround that works for me:
- disable default "text" app
- add and enable "plain text editor" app
- add and enable "markdown editor" app
Be aware that If your file has \n for line endings, it will be modified upon opening (regardless of whether any changes are made) to have \r\n as line endings. I have tried to fix this behavior by changing the ACE editor but so far no luck.