Re: Notebloc

0 views
Skip to first unread message
Message has been deleted

Olegario Benford

unread,
Jul 12, 2024, 3:30:22 AM7/12/24
to riamydeme

I'm new in react native, and I'm building a notebloc. The problem now is that I want to allow the user to write in color, to do that the component has a method called insertHTML, the problem here is that each time I execute the insertHTML, it inserts the element but can't write inside of it until I write   example:

the problem is if I have two string of different colors together, if I hit spacebar from the first string and the backspace and spacebar again, the second string that is stuck to it takes the color of the first string. Here I'm going to paste a screen that shows in the console step by step the structure of the notebloc:

notebloc


Download https://pimlm.com/2yRPcI



As you can see, the second hola at the beginning was red, one it's stuck to the first hola, it's   is deleted and if I go to the beginning of the first hola and hit spacebar, there's a   then backspace it's deleted and when I hit spacebar again, the second hola that was red become blue and both come inside a tag, why is this happening? and how can avoid it?

59fb9ae87f
Reply all
Reply to author
Forward
0 new messages