—Thank you so much for your help! Your example works great, I had to change the way words are replaced in the second layout, and now seems to work ok :)
Since you took the time, would you mind explaining your logic and how you thought this? Not really the technical part wich I can see it, and eventually learn it through tutorials, but the logical part, your thoughts before typing.... seems I had trouble understanding the order things should be thought before even opening construct.
My call was to have multiple textboxes, on each change, update a global variable and store it on a localstorage+array... then, on the final text, use those global variables to replace a string inside the text.
I think that, somehow, I overcomplicated things even before starting. Lack of technical knowledge, of course, but maybe also logical thinking. My example was working, but compared to yours, was long and complicated. As far I as I see, yours is simple and straight to the point.
If you could just tell me how you did plan it in your head, would be a great way to learn something that I cannot really learn from technical tutorials.
Thanks so much, and have a great week!