scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.65k stars 192 forks source link

Compare contents #220

Closed FranciscoImanolSuarez closed 3 years ago

FranciscoImanolSuarez commented 3 years ago

Hello, I wanted to make a query, or if you have a better example, how can I get the content that the user writes in the editor and it compares it with what I have in a .js file. In case this is the same, send a message to the console and in case it is false the same.

Thank you very much already!