mdx-editor / mdx-editor/editor

[BUG]- Irrelevant console.log on changing RichTextEditor

Open
#536 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
307
Avg merge
14h 22m
Merged PRs (30d)
5

Description

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • I have read the documentation and cannot find an answer.

Describe the bug
Whenever I Initialize RichTextEditor of MDX Editor I have noticed that on Changing MDX Editor it logs irrelevant data in as console.log(readOnly:false);

Reproduction
Start from Adding MDXEditor RichtextEditor in your code on changing any values it gives readOnly:false in order to see that you need to reproduce that as following steps:

To Reproduce
Steps to reproduce the behavior:

  1. Go to your application

  2. Insert Code as follow:
    <MDXEditor contentEditableClassName={contentClass} ref={mdxEditorRef} markdown={markdown} onChange={onChange} plugins={[ toolbarPlugin({ toolbarContents: () => ( <> {" "} <UndoRedo /> <BoldItalicUnderlineToggles /> <ListsToggle /> <BlockTypeSelect /> <CreateLink /> <EmojiPicker handleSelection={handleEmojiPickerChange} /> {imageUploadHandler && <InsertImage />} {/* <DiffSourceToggleWrapper /> */} </> ), }), listsPlugin(), quotePlugin(), headingsPlugin(), linkPlugin(), linkDialogPlugin(), imagePlugin({ imageUploadHandler }), diffSourcePlugin({ diffMarkdown: "An older version", viewMode: "rich-text", }), ]} />

  3. On changing any input it gives error:
    image

Expected behavior
console should be clear

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser :Chrome

Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

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 reproducing the report with the provided MDXEditor configuration, including diffSourcePlugin, then search the repository for the exact readOnly:false console output. Done means changing editor content no longer emits this irrelevant log; add or update a regression test if the existing test structure covers this behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.