Skip to content

Rich text: Allow for multiline = false #13570

@enejb

Description

@enejb

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Currently the <RichText /> component allows for for the user to enter multiple lines.
It would be great if there was a way to limit the that.
This would allow for blocks to be build that would allows the user the user to enter rich text but only in a single line.

The current usecase for that is the following Contact Info component that I am building.
screen shot 2018-12-18 at 3 50 48 pm
I want to be able to let the user bold or italicize part of the address for example.

Describe the solution you'd like
Allow us to pass multiple={false} as a paramter to richtext.

Describe alternatives you've considered
The current solution that doesn't quite work as expected that I got working is to use

<RichText 
    unstableOnSplit={ () => false } 
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Rich TextRelated to the Rich Text component that allows developers to render a contenteditable[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions