<!-- Issues that don't use this template are likely to be closed. --> <!-- Please search the existing issues and read the documentation before opening an issue. --> ### Current behaviour long text is wrapped to new line <!-- What's currently happening? --> ### Expected behaviour content is horiztonal scrollable. <!-- What do you expect to happen? If there is an error, provide the complete error message with stack trace. --> ### Code sample <!-- Provide a complete code sample that could be run to reproduce the issue, ideally on https://codesandbox.io/ or in a github repo. --> ### Screenshots (if applicable) The situation text is not overflowing frame:  The situation text is over the width of frame:  <!-- Include screenshots if there's a bug in the rendering. --> ### What have you tried set `white-space: pre !important'` on pre element, this visual effect is correct but the editing is broken. <!-- List down the steps you have tried to fix or identify the issue and links to any related issues you found. --> ### Your Environment | software | version | -------------------------| ------- | react-simple-code-editor | | react | | npm or yarn | | node | | browser |
Activity
delphin92 commentedon Jun 18, 2021
I have same issue and solve it by setting break-all:
In this case words wraps at arbitrary place, but it works same at both textrarea and pre. Maybe it help.
afvieira commentedon Jul 8, 2021
any news about this?
zirkelc commentedon Jul 25, 2021
I was able to get horizontal scrolling working, see this PR and my comment: #36
mmswi commentedon Dec 22, 2023
What I did, was the following
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react'and the css
Mind you that this applies only to the readonly mode, as writing in the editor was very buggy if I tried to change the styles
This way, I have dissappearing scrollbars on the public version of the website and horizontal scroll.