Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Bug in demo text editor on website #3161

Open
Aniket1026 opened this issue Aug 12, 2022 · 4 comments
Open

Bug in demo text editor on website #3161

Aniket1026 opened this issue Aug 12, 2022 · 4 comments

Comments

@Aniket1026
Copy link

!!! BUG REPORT

The demo editor provided on the website is not working.
The BOLD ,ITALIC ,UNDERLINE ,MONOSPACE options are not working on the entered text editor.

I was using this on latest chrome version and on a windows 10 device.
Below is shown a image from the website of draft.js where the mentioned options are not working.

Screenshot (101)

@vaibhavgarg237
Copy link

It's working properly
If you select the text and then tap H1/H2 or any other then it's working...
Can you please clearly mention steps for reproduction...

@Aniket1026
Copy link
Author

As for options like H1,H2 or code Block . I don't have to actually select the text it gets applied over all the input text as soon as I click any of them.
As shown

draftjs issue raised

But for applying Bold, Italic, Underline or Monospace . I had to select the text which was not the case with other options.
As shown

Draftjs issue

So I do think we can have the same functionality for all the options.
or maybe it was kept like this for some reasons. would love to know your views .
Thank you 😊.

@vaibhavgarg237
Copy link

I think it's not a bug, it's a feature according to the maintainers 😂😂!

Check https://github.com/facebook/draft-js in readme section. Checkout this link

Here in this gif it should be as it is...

@Aniket1026
Copy link
Author

Ohhhh , yeahhh 😂. I should have watched the readme more carefully .
Still thanks for pointing it out 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants