facebookarchive/draft-js

Scrollable line

开放

#1,615 创建于 2018年1月16日

 (2 条评论) (1 个反应) (0 位负责人)JavaScript (2,646 个派生)batch import
help wanted

仓库指标

星标
 (22,554 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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"

贡献者指南