fleather icon indicating copy to clipboard operation
fleather copied to clipboard

Single Input Line (No wrapping)

Open manudicri opened this issue 11 months ago • 0 comments

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.

manudicri avatar Jan 31 '25 20:01 manudicri