1.3.9 • Published 1 year ago

json5-editor v1.3.9

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

json5-editor

A lite JSON5 editor with smart autoComplete and zero configuration

NPM | Github | Playground

demo

usage

import { Editor } from 'json5-editor'

export default () => {
  return (
    <Editor {...props} />
  )
}

feature

  • Syntax highlight
  • Auto formatting & error correcting
  • Duplicate property name checking
  • Brace matching
  • code ruler

Not optimized for big JSON, use at your own risk

more about how it works and limitations, please refer to https://github.com/satya164/react-simple-code-editor#how-it-works

API

propdescriptiontypedefault
initialValuedefault value of textareastring''
valuevalue in the textarea, required in controlled modestring-
onChangetextarea value change callback, required in controlled mode(v: string) => void-
placeholderplaceholder of textareastring''
styleclassName of textarea and pre tagReact.CSSProperties-
classNameclassName of outer containerstring-
disabledwhether the editor is disbledbooleanfalse
readOnlywhether the editor is readonlybooleanfalse
1.3.9

1 year ago

1.3.9-beta.2

3 years ago

1.3.9-beta1

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.3.0-beta.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.1

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago

1.0.0-beta.0

3 years ago