Forum Moderators: coopster

Message Too Old, No Replies

tinyMCE problems

tinyMCE problems, new line, line break

         

zeroonea

6:51 am on Jan 1, 2007 (gmt 0)

10+ Year Member



i use tinyMCE, here is my html output when i press html button on tinyMCE


<div>testing 123</div><div>testing 123</div><div>testing 123</div>

but when i insert it to mysql database, it will line break at </div><div> like this


<div>testing 123</div>
<div>testing 123</div>
<div>testing 123</div>

i tried use mysql_real_escape_string or nl2br to strip new line symbol but nothing effect

can anybody help me? Thanks

henry0

4:28 pm on Jan 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Zeroonea Welcome to WebmasterWorld!

echo the output in your browser
do a view src
then use pre_replace to rem whatever in your editor add a <br>effect

also if your <div> are not surrounded by a "master" container most browser will translate a </div> by a new line.