Results 1 to 6 of 6
Nov 11, 2007, 11:18 #1
- Join Date
- Nov 2004
- 0 Post(s)
- 0 Thread(s)
tinymce: how to force use of <p> if only one line of text?
i discovered that if i just enter "test test test" into a basic tinymce textarea, it doesnt store any html in the db. only when i hit enter at the end of a line does it wrap <p> around both sentences. and, if i just paste a block of text in to tinymce (no linebreaks), it doesnt add html markup either
so i have to tell client to hit enter at the end of any sentence, or the db just returns text with no html markup. i cant use the code below either cause what if they enter two lines? in that case there will be two <p>'s wrapped around the text?
<p><? echo row['text'];?></p>I need someone to protect me from
all the measures they take in order to protect me