EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
118 stars 17 forks source link

Support of React JSX syntax?! #204

Closed zheleznyak closed 4 years ago

zheleznyak commented 4 years ago

Hello, I'm facing with issue using plugin for WP. When I added this code: `const Todos = (todos) => { return (

) }`

this line <li key={todo.id}>{todo.text}</li> was automatically converted to <li key="{todo.id}">{todo.text}</li>.

How to avoid adding "double quotes"?

AndiDittrich commented 4 years ago

Hi @zheleznyak,

Neither EnlighterJS nor the editing plugins are modifying the content. it's a third party/usage issue

how did you insert the code into your page ? i assume via copy& paste ? in this case use the code insert dialog (TinyMCE) or paste directly into the Enlighter Gutenberg block

zheleznyak commented 4 years ago

Yes, you're right. Now it's fixed. Thanks