Hi, Is there a setting that causes text that I type into FCKeditor to be surrounded in <div> tags and not <p>?
I would like to have my textual paragraphs in <p> tags, how do I do this?
Thanks
nelwa
-----
http://www.nellen.co.za
http://www.overnight.co.za
Tue, 02/14/2006 - 01:10
#1
RE: <p> rather than <div>
anybody??? please....
when I view source of my fckeditor's content, everywhere there should be a <p> tag, there is a <div> tag...
how do I solve this??
Thanks
nelwa
http://www.nellen.co.za
http://www.overnight.co.za
RE: <p> rather than <div>
var newStr = "<div attribute='test'><div>divcontent ..a. .. <p>a.a.a</p>..a.a.a .a.</div></div>";
alert(newStr.replace(/<\/?div([^>]*)>/ig, "<p$1>"));
But maybe there's a config option for letting the editor work with ps instead of divs...