{{indexmenu_n>750}} ====== FCKeditor: Delete emtpy paragraph ====== **Delete/replace all empty paragraph created by the FCKeditor e.g. ##
##.** "FCKeditor creates emtpy paragraph and you have to open all articles/CPs which are allready done. Then you have to switch into the html mode of your fckeditor and delete the unwanted paragraph. Save the CP/Article and the problem should be solved. PHPWCMS will not remove the empty paragraphs for you." "Special in the Summary field of your article header.... there are mostly empty paragraphs." :-( **If you have such and are not willing to touch all content, place a small script in frontend_render.** ---- \\ **rt_fck_del_emtpy_paragraph** V1.0 11.09.09 Docu: -- \\ Forum: [[http://forum.phpwcms.org/viewtopic.php?f=1&t=17401&p=119717#p119717]] **Autor:** Oliver Georgi http://phpwcms.de \\ **Autor:** Ralph Häring (Santscho) http://www.yaml.phpwcms.org \\ **CMS Version:** >= 1.3.x \\ **Version:** V1.0 \\ Tag: -- \\ Filename: **rt_fck_del_emtpy_paragraph.php** Folder: ** template/inc_script/frontend_render/ ** **Condition:** -> [[http://www.phpwcms-docu.de/conf_inc_php_en.phtml|/config/phpwcms/conf.inc.php]] \\ * ##$phpwcms['allow_ext_render'] = 1;## ---- ---- \\
',
'
',
'',
'
',
'...',
' - ',
"
\r\n ",
'
',
'
&160;
'
);
$_replace = array( '
',
'',
'',
'
',
'…',
' – ',
'',
'',
''
);
$content['all'] = str_replace($_search, $_replace, $content['all']);
?>