Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable adding of <p></p> tags in fckeditor

Tags:

fckeditor

how to disable automatic adding of <p></p> tags in Fckeditor.

When i try to get any post data from fckeditor, it gives me the data wrapped in

how do i remove/disable those <p></p>

Thanks in advance for any suggestions and reply

like image 286
Parag Avatar asked Dec 19 '25 08:12

Parag


1 Answers

Too late, but will help others reaching this page via search engines, like I found it.

<?php
include_once('fckeditor/fckeditor.php');
$oFCKeditor = new FCKeditor('description');
$oFCKeditor->BasePath = '/fckeditor/';
$oFCKeditor->Value = 'some text';
$oFCKeditor->Config['EnterMode'] = 'br'; // turn off auto <p> tags wrapping content
$oFCKeditor->Create();
?>

Refer http://www.tequilafish.com/2008/09/12/fckeditor-remove-p-tags-from-wrapping-your-content/

like image 142
Tainder Singh Avatar answered Dec 21 '25 09:12

Tainder Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!