Opened 8 years ago

Closed 8 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\>(\&nbsp\;|(\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 :(

Change History (1)

comment:1 Changed 8 years ago by Sa'ar Zac Elias

Resolution: duplicate
Status: newclosed

DUP of #5293.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy