facebookarchive/draft-js

Scrollable line

Open

#1615 aperta il 16 gen 2018

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)JavaScript (2646 fork)batch import
help wanted

Metriche repository

Star
 (22.554 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Do you want to request a feature or report a bug? feature/bug

What is the current behavior? I want make line of editor scroll-able -> css property "white-space: nowrap" and "overflow-x: auto" for line.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/. jsfiddle example: https://jsfiddle.net/marcin375/4k3bggmr/6/ When we enter data is alright: draft_works

but for example, when editor is empty and we enter 'space' input is empty and I'm not able to enter data: draft_broken

What is the expected behavior? Display scroll-x without error.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? "draft-js": "0.10.4"

Guida contributor