[wp-trac] [WordPress Trac] #51990: Codemirror does not support JSX by default as mentioned

WordPress Trac noreply at wordpress.org
Thu Dec 17 17:58:54 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:  External Libraries  |     Version:  5.5.3
 Severity:  major               |  Resolution:
 Keywords:  needs-patch         |     Focuses:
--------------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> 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'
>             }

New description:

 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#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list