question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copying from Slate adds a newline after first character

See original GitHub issue

Copying this fragment:

screen shot 2017-01-18 at 10 15 56

…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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ianstormtaylorcommented, Mar 23, 2017

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!

1reaction
wmertenscommented, Mar 23, 2017

why not put the data-slate-fragment on an empty span, or on the first childnode?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found