Answered
Grouping elements
Hello,
I need help with a problem. I have some groups of text. For example ("HELLO", "HOW ARE YOU", "FINE"). I need to show them as if they were only one big text ("HELLO HOW ARE YOU FINE"), but at all times I need to know which one is selected, modified, the new text, the format (it can be changed), etc.
I did this with a TextField using a separator char (making it invisible), but it didn't work very well (and also there were problems with the images). So I decided to try this framework. My idea was to use a GroupElement for each text (Like DivElement). I can have one textFlow with all the text, but at all times I can see which DivElement is selected.
However, this approach has a problem, I need to have:
- Groups that have more than one paragraph. (<div><p>Paragraph 1</p><p>Paragraph 2</p></div>) and
- Several groups in one paragraph (<p><div>Group 1</div><div>Group 2</div></p> )
A DivElement can't be a child of a ParagraphElement. Also, if you use 2 DivElements, you get 2 paragraph (not what I need for the second case).
Is there a way to do this? maybe extending a class?
Thank you very much,
Martin
I need help with a problem. I have some groups of text. For example ("HELLO", "HOW ARE YOU", "FINE"). I need to show them as if they were only one big text ("HELLO HOW ARE YOU FINE"), but at all times I need to know which one is selected, modified, the new text, the format (it can be changed), etc.
I did this with a TextField using a separator char (making it invisible), but it didn't work very well (and also there were problems with the images). So I decided to try this framework. My idea was to use a GroupElement for each text (Like DivElement). I can have one textFlow with all the text, but at all times I can see which DivElement is selected.
However, this approach has a problem, I need to have:
- Groups that have more than one paragraph. (<div><p>Paragraph 1</p><p>Paragraph 2</p></div>) and
- Several groups in one paragraph (<p><div>Group 1</div><div>Group 2</div></p> )
A DivElement can't be a child of a ParagraphElement. Also, if you use 2 DivElements, you get 2 paragraph (not what I need for the second case).
Is there a way to do this? maybe extending a class?
Thank you very much,
Martin
