There is currently a static list of binary file types which will not be opened in the text editor, I'm proposing to make that a configuration option.
For my specific use case, I want to edit an SVG file, which is just an XML.
The raw_open variable is restricting SVG, considering it a binary file type. Additionally, the request to the file API needs to be updated to specify an accept header of text/*.
There is currently a static list of binary file types which will not be opened in the text editor, I'm proposing to make that a configuration option.
For my specific use case, I want to edit an SVG file, which is just an XML.
The
raw_openvariable is restricting SVG, considering it a binary file type. Additionally, the request to the file API needs to be updated to specify an accept header oftext/*.