You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
It is not possible to paste a code snippet into a Draftjs code block. When you try, the text on the clipboard is copied into the editor, but the code block formatting is lost.
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. **
From a code editor, copy some code into the clipboard.
Summary:
Preserve block style when pasting plain text. That would allow pasting into code blocks and lists and applying respective styles to new blocks.
That should work for any type of block: code, list, quote, heading...
Probably related github issues:
- #1276
- #1219
Reviewed By: sophiebits
Differential Revision: D5786405
fbshipit-source-id: 3c6d074b0c3fe200761164ec6c5ccf1a82df5072
Summary:
Preserve block style when pasting plain text. That would allow pasting into code blocks and lists and applying respective styles to new blocks.
That should work for any type of block: code, list, quote, heading...
Probably related github issues:
- facebookarchive/draft-js#1276
- facebookarchive/draft-js#1219
Reviewed By: sophiebits
Differential Revision: D5786405
fbshipit-source-id: 3c6d074b0c3fe200761164ec6c5ccf1a82df5072
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
It is not possible to paste a code snippet into a Draftjs code block. When you try, the text on the clipboard is copied into the editor, but the code block formatting is lost.
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. **
What is the expected behavior?
The expectation is that the code copied from the text editor would be inserted into a Draftjs code block.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
I'm using Chrome Version 59.0.3071.115 (Official Build) (64-bit) on MacOS version 10.12.5.
I'm new to Draft.js so I don't know if this was working previously.
The text was updated successfully, but these errors were encountered: