Draft-js: copy pasting from one code block to another removes line breaks

Created on 21 May 2016  路  4Comments  路  Source: facebook/draft-js

It looks like (tested with the example on the website) if you copy all of the code inside of a code block from one to another, the target code block won't have preserved any line breaks.

image

bug

Most helpful comment

Any updates on this?

All 4 comments

Weird. Is this only happening with code blocks? And this is a purely internal paste, right?

Yup! I've only seen it with code blocks, and purely internally. (There's a separate problem with external pasting though, from https://github.com/facebook/draft-js/issues/394 .)

My guess is this has something to do with https://github.com/facebook/draft-js/issues/452 .

Any updates on this?

Was this page helpful?
0 / 5 - 0 ratings