[wp-trac] [WordPress Trac] #51990: Codemirror does not support JSX by default as mentioned
WordPress Trac
noreply at wordpress.org
Wed Dec 9 13:57:14 UTC 2020
#51990: Codemirror does not support JSX by default as mentioned
---------------------------+-----------------------------
Reporter: webbdeveloper | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.5.3
Severity: major | Keywords: needs-patch
Focuses: |
---------------------------+-----------------------------
Hi,
I found an issue with the core code.
It is mentioned on this link that the CodeMirror lib will support JSX by
default in the editor.
https://make.wordpress.org/core/2017/10/22/code-editing-improvements-in-
wordpress-4-9
But when I use JSX mode, I do see an invalid System error in the editor.
Please see this image:
https://user-images.githubusercontent.com/1482075/100721177-eab92a00-33b6
-11eb-84c8-a15da679d79d.png
{
indentUnit: 2,
tabSize: 2,
mode: 'jsx'
}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51990>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list