uiwjs / uiwjs/react-md-editor

preview mode - Toolbar Buttons are not disabled (Edit Code/Live Code/Preview Code/Toggle fullscreen)

Open
#575 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.9k
Forks
201
Avg merge
12m
Merged PRs (30d)
1

Description

On the preview mode, <MDEditor preview={'preview'} />
currently if it is the preview mode (disabled to type) it disables the toolbar options on the left like bold, Italic bts but not the buttons on the right(Edit button,Live code, Preview Code etc)

image

Is there any way to disable the right toolbar options if it is in preview mode?

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 tracing the MDEditor component's preview prop and the right-side toolbar buttons, including Edit, Live Code, Preview Code, and fullscreen. Confirm how the left toolbar is disabled in preview mode, then make the right-side controls follow the same behavior. Done means those controls cannot be activated when preview mode is enabled.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.