Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slate-soft-break: insert soft break on paste #52

Open
gcornut opened this issue Oct 4, 2019 · 0 comments
Open

slate-soft-break: insert soft break on paste #52

gcornut opened this issue Oct 4, 2019 · 0 comments

Comments

@gcornut
Copy link

gcornut commented Oct 4, 2019

I'm looking into implementing it. Let me know if this feature is aligned with what this plugin is supposed to bring to slate and let me know if you have idea on how it should be implemented.

Do you want to request a feature or report a bug?

feature

What's the current behavior?

When pasting text into the editor, the \n character splits the current block in two.

What's the suggested behavior?

Add an option in slate-soft-break to interpret \n in pasted text as soft breaks.
I'm not sure it should do this on all block type or if the option should restrict to a specific block type.

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

No branches or pull requests

1 participant