Hello everyone,
Excuse my bad english, i'm from France.
By default, when empty textarea (with Ckeditor) is submitted, it doesn't return empty POST value but "<br/>" (because he put it by default after text inputted in textarea).
So i can't make empty textarea verification, besause there's always a "<br/>" in when he is empty.
I find in the FAQ this thing, but i don't find where to put it, and i tried behind my textarea script but it doesn't work.:
writer.setRules( 'br',
{
// Indicates that this tag causes indentation on line breaks inside of it.
indent : false,
// Insert a line break before the <p> tag.
breakBeforeOpen : false,
// Insert a line break after the <p> tag.
breakAfterOpen : false,
// Insert a line break before the </p> closing tag.
breakBeforeClose : false,
// Insert a line break after the </p> closing tag.
breakAfterClose : false
});
Please, it's seems to be easier, but all the FAQ is in English, and some hard for me to understand all. Where to configure this bug and in witch folder ?. Is it the right path to configure my bug ?
Thanks you so much ! ![]()

Re: Problems with <br/> when textarea empty !
Perhaps you're using firefox?
http://dev.ckeditor.com/ticket/5293
Re: Problems with <br/> when textarea empty !
Yes, i use Firefox.

I have seen ticket : http://dev.ckeditor.com/ticket/5293
But it seems to be unsolved. I have add the Patch : Ticket #5293: 5293.patch
But it still does'nt clear the <br/> of the empty textarea.
The bug seems to be unfixed, do i have to use other script?
Re: Problems with <br/> when textarea empty !
Re: Problems with <br/> when textarea empty !
Hum...i don't understand all in english.
This is what i have done :
I putted the patch in the _source/plugins/wysiwygarea/plugin.js file, like described.
Put this code at the same place described by the patch :
// BR at the end of document is mozilla editor bogus node (#5293). if ( CKEDITOR.env.gecko ) { var last = doc.getBody().getLast(); if ( last.type == CKEDITOR.NODE_ELEMENT && last.is( 'br' ) ) last.remove(); }I have tested with refreshing many times my browser. Doesn't change anything, the <br/> stay.
And now, what i have to do ?
I have to change something with the ckeditor.js at the root of ckeditor folder ?
, got to take better english lessons...
I don't understand...
Thank you for your time !
Re: Problems with <br/> when textarea empty !
You must either use ckeditor_source.js instead of ckeditor.js
OR
Recompile ckeditor.js using the ckpackager program.
Re: Problems with <br/> when textarea empty !
YEAH !! GREAT, thanks i've understood, i have to make

<script type="text/javascript" src="ckeditor/ckeditor_source.js"></script>
instead of
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
So simple...
Thank you, it work ! Yesterday I was trying a solution by trying this for my empty test in PHP...
$resultat=strlen($_POST['editor1']);
if ($resultat==8){ echo "is empty";} else{ echo "not empty";}
Because i noticed 8 caracters for empty send with "<br/>", isn't weird?
Haha I love PHP, so funny for a girl like me.
Then, i don't either nedd this stupid test
Thank you "Comp615", have a nice day !
Re: Problems with <br/> when textarea empty !