Skip to content

Releases: uiwjs/react-codemirror

v4.20.0

18 May 13:34
Compare
Choose a tag to compare

Documentation v4.20.0: https://raw.githack.com/uiwjs/react-codemirror/6eeb98c/index.html
Comparing Changes: v4.19.16...v4.20.0

import CodeMirrorMerge from 'react-codemirror-merge';
const Original = CodeMirrorMerge.Original;
const Modified = CodeMirrorMerge.Modified;

<CodeMirrorMerge
  style={{ height: 300, overflow: 'auto' }}
>
  <Original
    value={originalCode}
    onChange={(value) => {
      console.log('value3:', value)
    }}
  />
  <Modified
    value={modifiedCode}
    onChange={(value) => {
      console.log('value3:', value)
    }}
  />
</CodeMirrorMerge>

v4.19.16

11 Apr 01:09
Compare
Choose a tag to compare

Documentation v4.19.16: https://raw.githack.com/uiwjs/react-codemirror/b0072ad/index.html
Comparing Changes: v4.19.15...v4.19.16

v4.19.15

08 Apr 03:46
Compare
Choose a tag to compare

Documentation v4.19.15: https://raw.githack.com/uiwjs/react-codemirror/904a7d8/index.html
Comparing Changes: v4.19.14...v4.19.15

  • 🌟 feat(CodeMirrorMerge): add orientation, revertControls, highlightChanges, gutter props. 3198a3c @jaywcjlove

v4.19.14

07 Apr 18:31
Compare
Choose a tag to compare

Documentation v4.19.14: https://raw.githack.com/uiwjs/react-codemirror/996d43e/index.html
Comparing Changes: v4.19.13...v4.19.14

v4.19.13

07 Apr 18:08
Compare
Choose a tag to compare

Documentation v4.19.13: https://raw.githack.com/uiwjs/react-codemirror/4745c35/index.html
Comparing Changes: v4.19.12...v4.19.13

v4.19.12

07 Apr 17:23
Compare
Choose a tag to compare

Documentation v4.19.12: https://raw.githack.com/uiwjs/react-codemirror/5ce6bf4/index.html
Comparing Changes: v4.19.11...v4.19.12

import CodeMirrorMerge from 'react-codemirror-merge';
import { EditorView } from 'codemirror';
import { EditorState } from '@codemirror/state';

const Original = CodeMirrorMerge.Original;
const Modified = CodeMirrorMerge.Modified;
let doc = `one
two
three
four
five`;

export const Example = () => {
  return (
    <CodeMirrorMerge orientation="b-a">
      <Original value={doc} />
      <Modified
        value={doc.replace(/t/g, 'T') + 'Six'}
        extensions={[EditorView.editable.of(false), EditorState.readOnly.of(true)]}
      />
    </CodeMirrorMerge>
  );
};

v4.19.11

28 Mar 09:23
Compare
Choose a tag to compare

Documentation v4.19.11: https://raw.githack.com/uiwjs/react-codemirror/79658d4/index.html
Comparing Changes: v4.19.10...v4.19.11

v4.19.10

25 Mar 05:53
Compare
Choose a tag to compare

Documentation v4.19.10: https://raw.githack.com/uiwjs/react-codemirror/061c0a9/index.html
Comparing Changes: v4.19.9...v4.19.10

v4.19.9

12 Feb 00:02
Compare
Choose a tag to compare

Documentation v4.19.9: https://raw.githack.com/uiwjs/react-codemirror/2849af4/index.html
Comparing Changes: v4.19.8...v4.19.9

v4.19.8

09 Feb 12:08
Compare
Choose a tag to compare

Documentation v4.19.8: https://raw.githack.com/uiwjs/react-codemirror/4be6e8c/index.html
Comparing Changes: v4.19.7...v4.19.8