Kurt6863778
Posts: 0
Joined: Sun May 11, 2014 2:15 am

formatting text field texts

how to format text in the text component to look like paragraphs as opposed to one big paragraph?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

formatting text field texts

Hi Kurt,

You could use HTML component (WYSIWYG):
https://getsatisfaction.com/apperyio/...

Kurt6863778
Posts: 0
Joined: Sun May 11, 2014 2:15 am

formatting text field texts

hey thanks for the reply, and sorry for responding so late but i dont think that is waht i meant

as in , i have a text component and i want (while using the phone) the user to input song lyrics from on the phone .currently when i copy paste lyrics or type them in it text component from on my phone and save it , everything comes out in one paragraph but i want it displaying (on the users phone in verses structure.

i tried playing around with the wisiwig thing and not quite understanding how to use it like how i described it above

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

formatting text field texts

Hi Kurt,

Run this CSS to apply a new line symbol to a Label component:pre[name=labelName]{
white-space: pre-wrap;
}/preWhere 'labelName' is a Label component name.

Kurt6863778
Posts: 0
Joined: Sun May 11, 2014 2:15 am

formatting text field texts

hey im not getting that to work still...or i probably dont know how to apply it ....ive been trying for the last half an hour

Kurt6863778
Posts: 0
Joined: Sun May 11, 2014 2:15 am

formatting text field texts

hey im not getting that to work still...or i probably dont know how to apply it ....ive been trying for the last half an hour

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

formatting text field texts

Hello!

Please describe all your steps of applying?

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

formatting text field texts

If someone types into a textarea, or pastes text, with paragraphs, and you then save it to the database and look at what you have just written, it looks like this:

Image

With the paragraphs gone, and its just one clump, which is out of context. The above text was written with textarea and it had 5 paragraphs.

Using the CSS above, does not change this look.

So the question is, how do we save text in HTML, so it can again be printed in HTML, so the text is printed correctly.

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

formatting text field texts

Scrub the above, it does work, but you need to do this:

pre
white-space: pre-wrap !important;
/pre

And add this to a class, and make sure the class is in the element class box.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

formatting text field texts

Thank you for sharing!

Return to “Issues”