slate-edit-list icon indicating copy to clipboard operation
slate-edit-list copied to clipboard

Slate 0.33.6 causes pasted list items to become nested lists

Open antdking opened this issue 7 years ago • 4 comments

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 avatar Aug 14 '18 17:08 antdking

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

Soreine avatar Aug 19 '18 18:08 Soreine

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

antdking avatar Aug 20 '18 07:08 antdking

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).

steobrien avatar Nov 01 '18 14:11 steobrien

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

PeterKottas avatar Dec 21 '18 21:12 PeterKottas