Releases: uiwjs/react-codemirror
v4.20.0
Documentation v4.20.0: https://raw.githack.com/uiwjs/react-codemirror/6eeb98c/index.html
Comparing Changes: v4.19.16...v4.20.0
npm i @uiw/[email protected]
- 🌍 website: refactor the documentation website. e79442e @jaywcjlove
- ⛑ test: fix test case error. e938690 @jaywcjlove
- 📖 doc: Fix broken theme editor link (#493) d48bb95 @Bowen7
- 🌟 feat(merge): add onChange props. (#502) faf5b24 @jaywcjlove
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
Documentation v4.19.16: https://raw.githack.com/uiwjs/react-codemirror/b0072ad/index.html
Comparing Changes: v4.19.15...v4.19.16
npm i @uiw/[email protected]
- 📖 doc: Update README.md 85c3468 @jaywcjlove
- 🐞 fix: fix editable/readOnly props. (#488) 606a5a1 @jaywcjlove
v4.19.15
Documentation v4.19.15: https://raw.githack.com/uiwjs/react-codemirror/904a7d8/index.html
Comparing Changes: v4.19.14...v4.19.15
npm i @uiw/[email protected]
- 🌟 feat(CodeMirrorMerge): add
orientation
,revertControls
,highlightChanges
,gutter
props. 3198a3c @jaywcjlove
v4.19.14
Documentation v4.19.14: https://raw.githack.com/uiwjs/react-codemirror/996d43e/index.html
Comparing Changes: v4.19.13...v4.19.14
npm i @uiw/[email protected]
- 🐞 fix(react-codemirror-merge): fix
ref
issue. (#455) 9f90348 @jaywcjlove - 🐞 fix: fix bundle file name. 60fba4f @jaywcjlove
v4.19.13
Documentation v4.19.13: https://raw.githack.com/uiwjs/react-codemirror/4745c35/index.html
Comparing Changes: v4.19.12...v4.19.13
npm i @uiw/[email protected]
- 🐞 fix(react-codemirror-merge): fix extensions props issue. (#455) eb6b780 @jaywcjlove
v4.19.12
Documentation v4.19.12: https://raw.githack.com/uiwjs/react-codemirror/5ce6bf4/index.html
Comparing Changes: v4.19.11...v4.19.12
npm i @uiw/[email protected]
- 📖 - 📖 docs: fix indentWithTab prop description (#483) ff629d7 @lloydlobo
- 💄 chore(deps): update dependency tsbb to v4 #481 83f1d1f @jaywcjlove
- 🌟 feat: add react-codemirror-merge component (#455). ba3d076 @jaywcjlove
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
Documentation v4.19.11: https://raw.githack.com/uiwjs/react-codemirror/79658d4/index.html
Comparing Changes: v4.19.10...v4.19.11
npm i @uiw/[email protected]
- 🐞 fix: fix dependencies issue. (#480) 3232f4c @jaywcjlove
- 💄 chore: update workflows config. c24f120 @jaywcjlove
v4.19.10
Documentation v4.19.10: https://raw.githack.com/uiwjs/react-codemirror/061c0a9/index.html
Comparing Changes: v4.19.9...v4.19.10
npm i @uiw/[email protected]
- 🐞 fix(deps): update dependency @codemirror/lang-markdown to ~6.1.0 (#459) 68abb98 @renovate-bot
- 💄 chore(core): remove unused const (#467) f284a8d @jgbernalp
- 📖 doc(extensions): update README.md 6968faf @jaywcjlove
- 🐞 fix: optimizing useCodeMirror rendering issues. (#474) 5eee5f4 @jaywcjlove
- 🔙 - 🐞 revert: "fix: optimizing useCodeMirror rendering issues. (#474)" 2fbfc8f @jaywcjlove
v4.19.9
Documentation v4.19.9: https://raw.githack.com/uiwjs/react-codemirror/2849af4/index.html
Comparing Changes: v4.19.8...v4.19.9
npm i @uiw/[email protected]
- 🌟 feat: export theme default settings. (#457) 3e7707d @jaywcjlove
- 📖 doc(themes): update document. (#457) ee75999 @jaywcjlove
- 🐞 fix: themes with wrong dark / light property (#458) 459f625 @felixroos
v4.19.8
Documentation v4.19.8: https://raw.githack.com/uiwjs/react-codemirror/4be6e8c/index.html
Comparing Changes: v4.19.7...v4.19.8
npm i @uiw/[email protected]
- 🐞 fix(deps): update dependency @codemirror/lang-sql to ~6.4.0 (#448) 714942a @renovate-bot
- 💄 chore: update example #449 075531a @jaywcjlove
- 🐞 fix: Fix echo
onChange
call when value prop is changed (#456) 7637bff @11bit