Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rich text editor in components
#2
How are you running the component ?

There is the php function nl2br(); You could wrap your text in it.

PHP Code:
<?php

$text 
"faskldfjasdkfaskdfasdfsdf
asdfklsjdfasdf
sdf
as
df
asdfasdfasdf
"
;

echo 
nl2br($text);
?>

or for the component

PHP Code:
echo nl2br(get_component(blah)); 
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
Rich text editor in components - by PixelOfficer - 2013-08-05, 23:37:53
RE: Rich text editor in components - by shawn_a - 2013-08-06, 00:20:57
RE: Rich text editor in components - by shawn_a - 2013-08-06, 00:30:01
RE: Rich text editor in components - by shawn_a - 2013-08-06, 00:37:03
RE: Rich text editor in components - by Carlos - 2013-08-06, 00:38:22
RE: Rich text editor in components - by shawn_a - 2013-08-06, 00:44:38
RE: Rich text editor in components - by Carlos - 2013-08-06, 01:05:40
RE: Rich text editor in components - by shawn_a - 2013-08-06, 01:20:46



Users browsing this thread: 1 Guest(s)