epescol How can I expand the text editor's width and enable support for editing .mjml files? Thank you
Karl epescol enable support for editing .mjml files? I'm not sure this can be done right now. First of all mjml is not a common known extension. I had to do a search to find out what it was, and neither the JS mime plugin we using in Files Gallery or Apache Mime recognizes mjml as an editable text format: https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types https://github.com/jshttp/mime-db Also, there is no CodeMirror syntax highlighting mode for mjml, although I guess HTML or XML mode might work. The only way to get this working in current version, would be to rename the files to html or xml, since that's really the format of the mjml files and means they will be recognized by Files Gallery. Already tested: I can manually add support for mjml in next release.
Karl epescol How can I expand the text editor's width For example using custom CSS: @media (min-width: 992px) { .modal-popup-code { --width: 720px; } }
Karl epescol enable support for editing .mjml files? Support for mjml files (xml) was added in latest release Files Gallery 0.12.0.
epescol Karl Thank you, sorry, can you briefly explain where to place the CSS? I added the following code: @media (min-width: 992px) { .modal-popup-code { --width: 1500px; } } in the file _files/css/custom.css, but it doesn't work. 😞
Karl epescol I tried it here, and it definitely works from custom CSS. Can you send a link to your gallery? If you can't paste here, please send to email link at bottom of this page. You shouldn't use 1500px though, because that means the width will be larger than the screen if the screen is < 1500px. Perhaps try --width: calc(100% - 4rem); instead? That's full screen width with some margin (if that's what you want).