Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Slate 0.33.6 causes pasted list items to become nested lists #81

Open
antdking opened this issue Aug 14, 2018 · 4 comments
Open

Slate 0.33.6 causes pasted list items to become nested lists #81

antdking opened this issue Aug 14, 2018 · 4 comments

Comments

@antdking
Copy link

I fully understand you only support slate 0.32, however I will flag this bug regardless.

A change was introduced in slate 0.33.5 (works fine in 0.33.4) that causes nested lists to be created on pasting of a list item.

Scenario:

  • copy some text from a list item
  • paste the text into a list item

expected behaviour:

  • text is pasted inline into the list item

actual behaviour:

  • a new unordered list is created, with an item of the pasted text.
  • The text to the right of what was pasted is moved to a new paragraph
@antdking antdking changed the title Slate 0.33.5 causes pasted lists to become sublists Slate 0.33.5 causes pasted list items to become nested lists Aug 14, 2018
@Soreine
Copy link
Contributor

Soreine commented Aug 19, 2018

Hmm weird. We will see why this happens when we will upgrade the plugin to support the latest Slate version

@antdking
Copy link
Author

I'll have some time to look into this this week, and will drop a PR if I solve it.

@antdking antdking changed the title Slate 0.33.5 causes pasted list items to become nested lists Slate 0.33.6 causes pasted list items to become nested lists Aug 20, 2018
@steobrien
Copy link

FWIW this has been fixed in Slate: ianstormtaylor/slate#2273.

(Of course, this library is no longer compatible with latest Slate).

@PeterKottas
Copy link

Once again (sorry for spamming issues, at least I am not pasting same text everywhere :) ), this is caused by gitbook guys abandoning original slate fork. If you are looking for maintained version, you'll find them here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants