Hello,
I want to change the entermode from <p> to <br>.
So I'm trying this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> </head> <body> <form> <textarea name="text" class="ckeditor" style="width:90%;" rows="13" id="text"><?php print $text2;?></textarea> <script type="text/javascript"> <!-- CKEDITOR.replace( 'text', { enterMode : CKEDITOR.ENTER_BR }); //--> </script> </form> </body> </html>
But this doesn't seem to work. I'm still getting <p>-tags when I insert an enter.
Can annyone please tell me what I'm doing wrong?
Please tell me if I'm being unclear about this.
Thanks.
Vinbob