Opened 14 years ago
Closed 14 years ago
#6030 closed Bug (duplicate)
cleare single <br /> or blank <p></p> befor send
Reported by: | Dmitrii | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Output Data | Version: | 3.3.1 |
Keywords: | Cc: |
Description
Firefox 3.6.6 (3.6.8), Opera 10.60 ,ckeditor 3.3.1 - ckeditor_nightly_5729, php
inserts <br />\r\n tag in empty editor, but dont remove it befor send
my temporary solution for php:
function trim_cke_blank_value($value) {
return preg_replace('/(\<p\>(\ \;|(\s)*)\<\/p\>|\<br(\s\/)?\>[\r\n\t]?[\r\n\t]?|\<br(\s\/)?\>)$/', , $value);
}
but some times very annoying trim all requests of ckeditors areas.
example:
i have description and content, if description blank - show cut part of content as description
after adding content (ckeditor1) with blank description (ckeditor2) in firefox or opera i get 100% <br /> as description :(
DUP of #5293.