Copying from Slate adds a newline after first character
See original GitHub issueCopying this fragment:
…and pasting it here gives:
From Firefox
r
endered block quote in the middle of the page, like this:
A wise quote.
From Chrome and Safari
r
endered block quote in the middle of the page, like this:
A wise quote.
You can see the unwanted newline after the first character in any case.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Commands - Slate
Insert a new inline at the current cursor position, splitting the text to make room if it is non-empty. If the selection is...
Read more >Add paragraph after image within a slate-react text editor
The most upvoted answer adds a new line only on image insert, which doesn't address the question. Here's a plugin on how to...
Read more >Newline Character gets added to a Field when Copying Data ...
The copy.in has a newline after the first quote of a literal and then continues on the next line. When this is executed...
Read more >Markdown style guide | styleguide - Google
To keep the slate clean for the next author, your Markdown should be ... Character line limit ... Prefer spacing after # and...
Read more >Why your pages break in weird places - Legal Office Guru
Hit CTRL-A to highlight the entire document · Go to the Paragraph dialog box (on the Home tab, click the small launcher arrow...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Putting it on an empty span, or on the first child element node sounds great to me! I’d love a PR that implements that. Thanks!
why not put the data-slate-fragment on an empty span, or on the first childnode?