facebookarchive/draft-js

Scrollable line

Open

#1,615 opened on Jan 16, 2018

View on GitHub
 (2 comments) (1 reaction) (0 assignees)JavaScript (2,646 forks)batch import
help wanted

Repository metrics

Stars
 (22,554 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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"

Contributor guide