Skip to content

Single Input Line (No wrapping) #456

@manudicri

Description

@manudicri

Is your feature request related to a problem? Please describe.
Currently, fleather-editor does not support a single-line input mode, similar to a TextField with maxLines: 1. This means that text wraps to the next line, which is not ideal for use cases requiring a single-line input, such as titles or short-form fields.

Describe the solution you'd like
I would like fleather-editor to have an option to enforce a single-line input mode, preventing text from wrapping to the next line. This could be implemented as a configurable parameter (e.g., maxLines: 1).

Describe alternatives you've considered
A possible alternative is using a standard TextField, but this lacks the rich text editing capabilities that fleather-editor provides. Another workaround is applying custom styling to restrict height and overflow, but this is not an ideal or clean solution.

Additional context
This feature would be useful for implementing single-line rich text inputs in forms, search bars, or any UI requiring limited input length without wrapping.

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