jodit / jodit/jodit-react

Typescript error

Open
#86 12 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
406
Forks
131
Avg merge
2h 32m
Merged PRs (30d)
2

Description

Hi, my code is:

<JoditEditor
  config={{readonly: false}}
/>

i i get this error: Type '{ readonly: false; }' is missing the following properties from type 'Config': iframe, commandToHotkeys, license, preset, and 56 more.ts(2740)

image

how can i fix?

thank you.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the JoditEditor component's TypeScript definition for the config prop and the Config type referenced by the error. Reproduce the shown JSX and compare the expected configuration shape with the accepted usage; done means the reported type error is resolved or the required configuration is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.