Skip to content

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

@fibonacid

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 ?

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