facebookarchive/draft-js

Scrollable line

Open

#1 615 ouverte le 16 janv. 2018

Voir sur GitHub
 (2 commentaires) (1 réaction) (0 assignés)JavaScript (2 646 forks)batch import
help wanted

Métriques du dépôt

Stars
 (22 554 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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"

Guide contributeur