jodit / jodit/jodit-react

keep getting this random error when loading the editor: Uncaught TypeError: u.current is null

Open
#128 0 comments 0 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

here's a screenshot of my console log:
https://i.imgur.com/i5Uf09E.jpg

btw, I'm using react with express
package.json: "jodit-react": "^1.0.74",

and I used joditeditor like this (but sometimes I get console errors, randomly, it crashes on load):
[ Uncaught TypeError: u.current is null ]

import JoditEditor from "jodit-react";
const editor = useRef(null);
const config = {
"uploader": {
"insertImageAsBase64URI": true
},
"language": "ar",
"direction": "rtl",
"showCharsCounter": false,
"useSearch": false,
"disablePlugins": "print,source,about,fullsize,search,class-span",
"height": 250,
"toolbar": false,
"iframe": true,
"toolbarInlineForSelection": true,
"inline": true,
"enter": "DIV",
"autofocus": true
}

the second issue: is the initialValue='someting' is not working (I supposed to get a placeholder string right? if the editor is empty)
but I get no values there

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 with the JoditEditor usage shown in the issue and the package.json entry for jodit-react ^1.0.74. Reproduce the intermittent load error using the supplied configuration, then separately check the reported initialValue behavior. Done means the crash and the expected empty-editor value or placeholder behavior are reproduced and clearly diagnosed.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.