on load the ckeditor automatically is adding a <br />.
It's annoying because when I start to type, the text automatically breaks to the next line. It's odd.
This seems to be a FF specific bug.
Nothing is in-between the textarea tags.
I am customizing the interface as such in the config:
config.shiftEnterMode = CKEDITOR.ENTER_BR;
config.enterMode = CKEDITOR.ENTER_BR;
config.resize_enabled = false;
but that's it.
Super annoying for two reasons: One, it auto breaks when you start typing, no way around it.
Two - I'm doing error checking in javascript to see if the editor is empty to fire an error.... however the editor is not empty. When I run getdata on the editor right after load... it returns a "<br />" tag and a line break. Really weird, any help?
It's annoying because when I start to type, the text automatically breaks to the next line. It's odd.
This seems to be a FF specific bug.
Nothing is in-between the textarea tags.
I am customizing the interface as such in the config:
config.shiftEnterMode = CKEDITOR.ENTER_BR;
config.enterMode = CKEDITOR.ENTER_BR;
config.resize_enabled = false;
but that's it.
Super annoying for two reasons: One, it auto breaks when you start typing, no way around it.
Two - I'm doing error checking in javascript to see if the editor is empty to fire an error.... however the editor is not empty. When I run getdata on the editor right after load... it returns a "<br />" tag and a line break. Really weird, any help?
Re: ckeditor automatically adding break
Re: ckeditor automatically adding break
I can't have anything before the output.
Re: ckeditor automatically adding break
I am experiencing this problem, too. I am using CKeditor with Drupal and I had this problem with FCKEditor and it was resolved in that code base.
See:
http://dev.fckeditor.net/ticket/1150
http://dev.fckeditor.net/ticket/2522
Re: ckeditor automatically adding break
Re: ckeditor automatically adding break
1. Go to Site Configuration>Input Formats>List
2. Select the "Configure" link for the Role which is experiencing the problem.
3. Select "Rearrange" at the top of the page.
4. Change the weight of your line converter so it is heavier than the html editor.
This corrected the problem in my case.
(There seems to be some conflict with the teaser break. I noticed when I unchecked the "teaser break" in the profiles for CKEditor, the "adding breaks" problem went away. My problem was that I needed the "teaser break". I then discovered the above solution.)
Re: ckeditor automatically adding break
Re: ckeditor automatically adding break
Re: ckeditor automatically adding break
However, my Firefox still adds annoying linebreaks on several occasions(Like, after a template is inserted), which screws up autogrow-functions.
Re: ckeditor automatically adding break
Thanks
Kurund
Re: ckeditor automatically adding break
I'm having a similar problem.
I have my enterMode set as div - CKEditor is adding a line break (div) at the end of the content every time it loads it from the database.
If someone has a solution, please let me know! Thanks
EDIT: I'm implementing using jQuery, not sure if that makes a difference.
Re: ckeditor automatically adding break
That is one press of the enter key. So instead of one line break, I get three. The P tag and two BR's. (Not to mention, you can also see an invisible carriage return (CR) there as well.
How do I turn off those extra BR's?
Re: ckeditor automatically adding break
Re: ckeditor automatically adding break
alfonsoml, you beat me to the answer. I was digging around a bit more and realized that in my PHP I was also doing an nl2br on that field. That was for formatting before I added the CKEditor. hah, well I hope that helps someone else.