facebookarchive / draft-js

A React framework for building text editors.

Home Page:https://draftjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in demo text editor on website

Aniket1026 opened this issue Β· comments

!!! 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)

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

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

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

Ohhhh , yeahhh πŸ˜‚. I should have watched the readme more carefully .
Still thanks for pointing it out πŸ˜„