Repository navigation
Replies: 2 comments
|
using something like placeholder={"line 1\nline 2"} and setting the white-space style to pre worked for me |
0 replies
|
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Defining multiline placeholder is not possible with '/n' chars.
I would like to set a property of a placeholder, that has multiline code segment. but non of the chars I though will make a line break wouldn't work (
, /n, so on...)
How would I be able to achieve that goal?
Sample code to reproduce your issue
<AceEditor placeholder="<html>\n<body>\n</body>\n<html>" />All reactions