Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]- Irrelevant console.log on changing RichTextEditor #536

Open
AhsanKhaan opened this issue Jul 13, 2024 · 0 comments
Open

[BUG]- Irrelevant console.log on changing RichTextEditor #536

AhsanKhaan opened this issue Jul 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AhsanKhaan
Copy link

  • 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.

@AhsanKhaan AhsanKhaan added the bug Something isn't working label Jul 13, 2024
@AhsanKhaan AhsanKhaan changed the title [BUG] [BUG]- Ir relevant console.log on changing RichTextEditor Jul 13, 2024
@AhsanKhaan AhsanKhaan changed the title [BUG]- Ir relevant console.log on changing RichTextEditor [BUG]- Irrelevant console.log on changing RichTextEditor Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant