@uiw/react-codemirror 4.19.16 → 4.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/codemirror.js +429 -339
- package/dist/codemirror.min.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ CodeMirror component for React. Demo Preview: [@uiwjs.github.io/react-codemirror
|
|
|
26
26
|
📚 Use Typescript to write, better code hints.
|
|
27
27
|
🌐 The bundled version supports use directly in the browser [#267](https://github.com/uiwjs/react-codemirror/issues/267#issuecomment-1041227592).
|
|
28
28
|
🌎 There are better [sample previews](https://uiwjs.github.io/react-codemirror).
|
|
29
|
-
🎨 Support [theme](https://uiwjs.github.io/react-codemirror/#/theme/data/dracula) customization, provide theme [editor](https://uiwjs.github.io/react-codemirror/#/theme
|
|
29
|
+
🎨 Support [theme](https://uiwjs.github.io/react-codemirror/#/theme/data/dracula) customization, provide theme [editor](https://uiwjs.github.io/react-codemirror/#/editor/theme).
|
|
30
30
|
|
|
31
31
|
## Install
|
|
32
32
|
|
|
@@ -247,7 +247,7 @@ export default function App() {
|
|
|
247
247
|
|
|
248
248
|
## Using Theme
|
|
249
249
|
|
|
250
|
-
We have created a [`theme editor`](https://uiwjs.github.io/react-codemirror/#/theme
|
|
250
|
+
We have created a [`theme editor`](https://uiwjs.github.io/react-codemirror/#/editor/theme) where you can define your own theme. We have also defined [some themes](https://uiwjs.github.io/react-codemirror/#/theme/data/okaidia) ourselves, which can be installed and used directly. Below is a usage example:
|
|
251
251
|
|
|
252
252
|
```jsx
|
|
253
253
|
import CodeMirror from '@uiw/react-codemirror';
|