react-json-editor-ajrm icon indicating copy to clipboard operation
react-json-editor-ajrm copied to clipboard

Pasted JSON throws error in Chrome

Open eemorozov opened this issue 4 years ago • 2 comments

  1. What version of RJEA are you using (react-json-editor-ajrm version)? 2.5.13

  2. What operating system and processor architecture are you using? Windows 10 + cloud codesandbox

  3. What did you do? Insert valid JSON in the editor in Chrome browser { "test": "test" }

  4. What did you expect to see? Expect to see parsed JSON without errors

  5. What did you see instead? See error "Non-alphanumeric token '' is not allowed outside string notation at line 1". Error is shown only in Chrome (Firefox works well) and only on paste event. I found that after paste event Firefox has
    in childNodes and Chrome doesn't.

eemorozov avatar Feb 26 '21 09:02 eemorozov

More info on this in: https://github.com/AndrewRedican/react-json-editor-ajrm/issues/149

wwitekk avatar Mar 11 '21 05:03 wwitekk

I made a PR today to fix this issue: https://github.com/AndrewRedican/react-json-editor-ajrm/pull/193

Waiting for someone who can approve it.

sOoN92 avatar Oct 01 '21 10:10 sOoN92