Disable adding <p> </p> tags to fckeditor

how to disable automatic tagging <p></p>in Fckeditor.

When I try to get any data from fckeditor, it gives me data wrapped in

how to remove or disable those <p></p>

Thanks in advance for any suggestions and answers.

+3
source share
2 answers

Too late, but it will help others reach this page through search engines, as 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();
?>

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

+6
source

. ColdFusion, fckeditor, <p>, EnterMode br fckconfig.js

0

Source: https://habr.com/ru/post/1756649/


All Articles