Skip to content

Commit 6b8319b

Browse files
committed
Update docs
1 parent d6e3c39 commit 6b8319b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ You can see an example in the [demo](https://carlosnz.github.io/json-edit-react/
415415
416416
See the codebase for the exact implementation details:
417417
418-
- [Simple component that wraps CodeMirror](https://github.com/CarlosNZ/json-edit-react/blob/157-custom-text-editor/demo/src/CodeEditor.tsx)
419-
- [Prop passed to json-edit-react](https://github.com/CarlosNZ/json-edit-react/blob/6e3d21d20750b4a6519eea1f472be9a2a41b8a7c/demo/src/App.tsx#L441-L454)
418+
- [Simple component that wraps CodeMirror](https://github.com/CarlosNZ/json-edit-react/blob/main/demo/src/CodeEditor.tsx)
419+
- [Prop passed to json-edit-react](https://github.com/CarlosNZ/json-edit-react/blob/d6e3c39d1fe876fa8ed267301ebecf128132b602/demo/src/App.tsx#L450-L465)
420420
421421
## Search/Filtering
422422
@@ -784,6 +784,7 @@ A few helper functions, components and types that might be useful in your own im
784784
- `CustomNodeProps`: all props passed internally to [Custom nodes](#custom-nodes); basically the same as `CollectionNodeProps` with an extra `customNodeProps` field for passing props unique to your component`
785785
- `DataType`: `"string"` | `"number"` | `"boolean"` | `"null"` | `"object"` | `"array"`
786786
- `KeyboardControls`: structure for [keyboard customisation](#keyboard-customisation) prop
787+
- `TextEditorProps`: props for custom [Text Editor](#full-object-editing)
787788
788789
## Issues, bugs, suggestions?
789790

demo/src/CodeEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const themeMap = {
1818
Psychedelic: monokai,
1919
}
2020

21+
// Styles defined in /demo/src/style.css
22+
2123
const CodeEditor: React.FC<TextEditorProps & { theme: string }> = ({
2224
value,
2325
onChange,

0 commit comments

Comments
 (0)