files_markdown icon indicating copy to clipboard operation
files_markdown copied to clipboard

Problems with the Editor and not-Markdown Files

Open noseshimself opened this issue 5 years ago • 2 comments

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.

noseshimself avatar Apr 29 '20 20:04 noseshimself

workaround that works for me:

  1. disable default "text" app
  2. add and enable "plain text editor" app
  3. add and enable "markdown editor" app

ynuyasha avatar Apr 30 '20 10:04 ynuyasha

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.

ifuchs avatar Apr 30 '20 11:04 ifuchs