react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

Check next props value against code mirror value

Open durran opened this issue 8 years ago • 11 comments

We we having the same issues as described in https://github.com/JedWatson/react-codemirror/issues/121 and https://github.com/JedWatson/react-codemirror/issues/106. In our case, simply checking the next prop's value against the current code mirror value resolved the issue.

durran avatar Jun 28 '17 17:06 durran

Waiting for this PR to be merged. This solves our problem as well.

OsamaShabrez avatar Jun 29 '17 12:06 OsamaShabrez

please @JedWatson

marcofugaro avatar Jul 03 '17 16:07 marcofugaro

@durran I think also the file lib/Codemirror.js needs to be updated, that is the one being used when you require the library. I don't understand the workflow but you probably need to launch just npm run build

marcofugaro avatar Jul 03 '17 16:07 marcofugaro

We are waiting for this (or https://github.com/JedWatson/react-codemirror/issues/107) to merge and considering moving to https://github.com/securingsincity/react-ace if there is nothing happening anytime soon cause we do not want to create a real fork.

inoas avatar Jul 03 '17 16:07 inoas

@marcofugaro I wasn't sure of the workflow as well so figure the build would be handled by @JedWatson before the publish.

durran avatar Jul 04 '17 14:07 durran

@JedWatson Just pinging because it looks like others were pinging with lowercase jedwatson which didn't appear to be performing the @mention.

Many have been needing the changes either in this PR or in #107. Are you open to having others help maintain this repo? We love everything you've done with it so far and I personally wouldn't want to have to rely on a random branch or switch to a different lib.

besh avatar Jul 07 '17 19:07 besh

@JedWatson

christopherdro avatar Jul 13 '17 06:07 christopherdro

Unfortunately this did not solve #106 for me.

christopherdro avatar Jul 13 '17 06:07 christopherdro

Are you sure? Does https://github.com/JedWatson/react-codemirror/pull/107 fix it for your @christopherdro

inoas avatar Jul 13 '17 12:07 inoas

Yes #107 works

christopherdro avatar Jul 13 '17 15:07 christopherdro

Edit: Please try https://github.com/scniro/react-codemirror2 instead. That fork is maintained, available via npm and gathering stars.

inoas avatar Oct 02 '17 16:10 inoas