Skip to content

getSelectionText should take a parameter to replace line breaks with a given char #22

Description

@fibonacid

Sometimes you need to include line feeds in you selected text, so I it would be nice to do this:

 const text = getSelectionText(editorState, "\n");
 console.log(text);

And the result would be

> Dear Foo\nHow are you ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions