slate-edit-list
slate-edit-list copied to clipboard
Slate 0.33.6 causes pasted list items to become nested lists
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
Hmm weird. We will see why this happens when we will upgrade the plugin to support the latest Slate version
I'll have some time to look into this this week, and will drop a PR if I solve it.
FWIW this has been fixed in Slate: https://github.com/ianstormtaylor/slate/pull/2273.
(Of course, this library is no longer compatible with latest Slate).
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