How to store rich text editor's data in Firestore?

Tajan Thind :

I am working on a medium clone app for which I will be using a rich text editor to let users enter different types of data. The types of data will include images, bold text, italics text, quote text and a lot more.

Now my question is:

How can data of different types be stored in firestore?

Alex Mamo :

1) How can data of different types be stored in firestore?

You can save in a document properties of different types as long as the properties are supported data types.

2)Which is the best and reliable rich text editor for android java?

First of all, please note that:

Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow

So please be aware in the future when asking a question. As a personal preference for Android development, I would say that Android Studio is the one but there are also many other IDE's out there.

Edit:

Besides that, Firestore doesn't support any bold text, italics text, quote text within string values. If you write something like that in a string, you're going to get exactly that back when you read the document. If you need to store something special, you may want to encode and decode that yourself. However, you can put whatever characters you want in a Firestore document. You can even put emoji in there recently, but you just can't expect that Cloud Firestore to understand and parse any sort of "rich text" that can have a meaning in programming languages.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=307374&siteId=1