In the XML-file of, for example, a module you can use the field type editor
with editor codemirror
.
Add a field to the XML using the syntax for css. For example:
<field name="css-code" label="CSS Code" type="editor" editor="codemirror" syntax="css" />
A codemirror textarea that checks to code according to the chosen syntax. In this example: css
The syntax check is not implemented because the syntax files could not be found.
This can be seen in the inspect window of the browser.
The Joomla-code / Codemirror-code (I don't know which) looks for the syntax file at (let's call it location A):
/media/vendor/codemirror/mode/text/css/text/css.min.js
The syntax code is located at (location B):
/media/vendor/codemirror/mode/css/css.min.js
Result the relevant syntax code is not found: there is something wrong with the path.
Joomla 4.4.5 on a windows 2019 server.
For the syntax php everything is allright.
For the syntax of css, js and sql it is not. Other syntaxes not tested.
JS:
Location A: /domains/de4a.nl/public_html/media/vendor/codemirror/mode/text/javascript/text/javascript.min.js
Location B: /domains/de4a.nl/public_html/media/vendor/codemirror/mode/javascript/javascript.min.js
SQL (just a little more wrong):
Location A: /domains/de4a.nl/public_html/media/vendor/codemirror/mode/text/x-sql/text/x-sql.min.js
Location B: /domains/de4a.nl/public_html/media/vendor/codemirror/mode/sql/sql.min.js
Quick fix
Copy the relevant files from location B to location A
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Hi Brian,
Thank you for taking the time to have a look at my bug-report. Just this week, while fixing this bug on my development environment on my Mac, I wondered if my bug would be looked at. So, thank you again.
I wil take some time next week to create a few screen shots, to show you in more detail, what I think is the matter.
For now, have a good weekend.
Regards,
Arend-Henk Huzen
Op 1 aug 2024, om 14:45 heeft Brian Teeman @.***> het volgende geschreven:
Tested with
syntax="php"
syntax="js"
syntax="css"
syntax=sql"In all cases no errors were reported in the console and the reported bug could not be replicated
I note that you say you are running a windows2019 server - perhaps that is the problem (clutching at straws)
—
Reply to this email directly, view it on GitHub #43664 (comment), or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQ3OKHE6JFU5ZIN7XKJUWLZPIUXRAVCNFSM6AAAAABJNYMDYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRSHE2TCMBYGA.
You are receiving this because you authored the thread.
I had a second look at the issue I raised.
I made a very simple module to illustrate my point: four xml-settings with different. Only the format checker for PHP works without the quick fix I already mentioned.
Situation before quick fix
I get three error-messages
With this folder-structure:
After I renamed the folder 'text-renamed' back to 'text' (applying the quick fix), there are no error-messages.
Test Module
mod_jm_test.zip
I just did a quick install and didnt get those errors
Then I checked again and noticed that I tested in j5 and this report is for j4
On J4 I do get those errors
Labels |
Added:
bug
|
Tested with
syntax="php"
syntax="js"
syntax="css"
syntax=sql"
In all cases no errors were reported in the console and the reported bug could not be replicated
I note that you say you are running a windows2019 server - perhaps that is the problem (clutching at straws)