Page 1 of 2

formatting text field texts

Posted: Thu Jun 12, 2014 7:15 am
by Kurt6863778

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


formatting text field texts

Posted: Thu Jun 12, 2014 7:47 am
by Kateryna Grynko

Hi Kurt,

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


formatting text field texts

Posted: Thu Jun 12, 2014 10:57 pm
by Kurt6863778

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


formatting text field texts

Posted: Fri Jun 13, 2014 10:58 am
by Kateryna Grynko

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.


formatting text field texts

Posted: Fri Jun 13, 2014 9:55 pm
by Kurt6863778

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


formatting text field texts

Posted: Sat Jun 14, 2014 1:27 pm
by Kurt6863778

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


formatting text field texts

Posted: Sat Jun 14, 2014 2:05 pm
by obullei

Hello!

Please describe all your steps of applying?


formatting text field texts

Posted: Sat Jun 14, 2014 9:26 pm
by Bad Addy

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.


formatting text field texts

Posted: Sat Jun 14, 2014 9:53 pm
by Bad Addy

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.


formatting text field texts

Posted: Sat Jun 14, 2014 10:03 pm
by Alena Prykhodko

Thank you for sharing!