Hi everyone, I have a question. Is there someone t...
# compose
j
Hi everyone, I have a question. Is there someone that is working on or have an idea how to create a RichTextEditor component to render different type of list such as CheckList, Bulleted List, etc. I was trying to use the
BasicTextField
but seems that it’s not possible to render other components such as
CheckBox
as mentioned above. Do you have any idea o recommendation how to handle that or another component different than
BasicTextField
? Thanks in advance.
c
There is not really support for document editing, currently. If you are creating an app that just manages lists of different kinds, you can build that. You just don’t put everything in a text field (only text). If you have a requirement to add more full-featured document editing, you should launch the browser and load a markdown editor or custom WYSIWYG tool.
j
The idea is to create a custom component, because right now we are using a webview with a custom WYSIWYG.
a
This mighttt give you some ideas
j
Thanks @Ale Stamato the library is interesting but that is for readonly. I will try to look for more info about something editable.
a
@Tunji Dahunsi would project ME provide some good snippets based on the library above for editable richtext?
j
Any idea just let me know. Thanks in advance.
t
Hi hi! What kind of editable properties are you looking for?
j
Hi @Tunji Dahunsi, I want to draw a checklist inside an editable text unfortunately the
BasicTextField
as the name said only work for text, but I want to draw other UI elements such as
Checkbox, Images, etc
t
Oh I see. You could try using a
FlowRow
and multiple text fields with custom placement logic for wrapping text as they flow to the next line?
j
I was thinking something like that but maybe that could be complicated to handle changes when editting or having nested levels that uses other UI components