Text: Cannot open json or yaml files

Created on 23 Nov 2019  Â·  1Comment  Â·  Source: nextcloud/text

Describe the bug
Newly created json or yaml files cant be opened

To Reproduce
Steps to reproduce the behavior:

  1. Create a new test.json via web gui
  2. Click on this test.json file

Expected behavior
File should just open as any other .txt or .md

Client details:

  • OS: Ubuntu 18.04 / Windows 10
  • Browser: Firefox / Chromium
  • Version: Latest


Server details

Text app version: (see Nextcloud apps page)
1.1.1
Operating system:
Debian 10
Web server:
nginx
Database:
pgsql
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
17.0.1


Logs

Browser log

Unhandled promise rejection 
Error
​
columnNumber: 1304
​
fileName: "https://cloud.domain.tld/apps/files_texteditor/build/editor.js?v=076ec045-35"
​
lineNumber: 1
​
message: "Loading chunk 14 failed."
​
stack: "l@https://cloud.domain.tld/apps/files_texteditor/build/editor.js?v=076ec045-35:1:1304\n"
​
__proto__: Object { … }
main.js:230:27761
O/</t<
https://cloud.domain.tld/core/js/dist/main.js:230:27761
e.exports
https://cloud.domain.tld/core/js/dist/main.js:235:78122
O/<
https://cloud.domain.tld/core/js/dist/main.js:230:27638
e.exports
https://cloud.domain.tld/core/js/dist/main.js:230:24391
<anonymous>
https://cloud.domain.tld/core/js/dist/main.js:181:5609
v
https://cloud.domain.tld/core/js/dist/main.js:181:5467
y
https://cloud.domain.tld/core/js/dist/main.js:181:5487

bug

Most helpful comment

Surely related to #418 and #424. The editor will mangle any text file with .md extension which is not already valid markdown.

The obvious solution is the same simple one: provide a plaintext mode, to enable editing of arbitrary text. No buttons. No WYSIWYG.

This seems like quite a serious bug. Right now this editor cannot be used to edit code. But code is text too.

>All comments

Surely related to #418 and #424. The editor will mangle any text file with .md extension which is not already valid markdown.

The obvious solution is the same simple one: provide a plaintext mode, to enable editing of arbitrary text. No buttons. No WYSIWYG.

This seems like quite a serious bug. Right now this editor cannot be used to edit code. But code is text too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Klakla2 picture Klakla2  Â·  5Comments

jancborchardt picture jancborchardt  Â·  3Comments

severin-lemaignan picture severin-lemaignan  Â·  4Comments

feutl picture feutl  Â·  3Comments

doobry-systemli picture doobry-systemli  Â·  3Comments