flet icon indicating copy to clipboard operation
flet copied to clipboard

feature: Proposal: Turn TextField into a powerful editor (Markdown/RichText/Code)

Open Qye-Leisure opened this issue 9 months ago • 1 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the requested feature

I hope the TextField component can be upgraded to support Markdown, rich text in-place rendering, and custom renderers (e.g., for code blocks).

By adding these capabilities, we would have a truly powerful text editor at our disposal. It could serve directly as a Markdown editor, a rich text editor, a code editor, or a custom editor. This is a highly desired feature that would greatly improve the component’s utility.

Suggest a solution

It is worth noting that Flet already possesses Markdown and Rich Text renderer components. I propose leveraging these existing assets by embedding them directly into the TextField component. This approach would effectively enable in-place rendering, transforming the standard input field into a powerful editor with minimal architectural changes.

Screenshots

No response

Additional details

No response

Qye-Leisure avatar Feb 07 '26 15:02 Qye-Leisure

I think it might be easier to wrap flutter_quill instead EDIT: someone's already done that: Flet-Quill

iron3oxide avatar May 19 '26 12:05 iron3oxide