Page 1 of 1

default WYSIWIG editor inserting linebreaks in strange place

Posted: Tue Feb 28, 2006 7:30 pm
by Jabrwock
When using the default WYSIWYG editor (I'm having issues configuring FCKeditor atm), it seems to insert <BR> tags where they're not supposed to go.

After the 2nd paragraph, it sticks <BR> tags after the first word of every paragraph.

So when I paste in text like this:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

Maecenas feugiat consequat diam. Maecenas metus.

Vivamus diam purus, cursus a, commodo non, facilisis vitae, nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci.

Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis.

Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.
It formats it like this:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

Maecenas feugiat consequat diam. Maecenas metus.

Vivamus
diam purus, cursus a, commodo non, facilisis vitae, nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci.

Donec
pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis.

Ut
ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.
Any idea why it's doing this? I'm using the 0.9.1 default install, with the default stylesheets, and Firefox 1.5

Switching to HTML edit in the editor allows me to "clean up" the extra linebreaks that are causing the editor to insert <BR> tags, but I'm confused as to why it was putting those linebreaks in at all. The original text had *some* linebreaks, but not after the 1st word of every paragraph...

Re: default WYSIWIG editor inserting linebreaks in strange p

Posted: Tue Feb 28, 2006 7:45 pm
by garvinhicking
I just checked this here; it doesn't do that on my installation.

Are you copy+pasting it from some application like Word? Do you use any special firefox extensions?

Regards,
Garvin

Posted: Tue Feb 28, 2006 8:13 pm
by Jabrwock
I'm pasting from another web-page http://gamepolitics.livejournal.com/216094.html

It puts the linebreaks in at the same place the webpage does, but then it also inserts extra ones after the first few words of each paragraph.

I'm not using any extra firefox extentions (except bugmenot).

Posted: Tue Feb 28, 2006 8:58 pm
by garvinhicking
Hm, are the linebreaks immediately inserted, or only after you save the entry?

I just pasted the entry you referred to, and could also not reproduce your issue; I get no additional linebreaks...?!

Regards,
Garvin

Posted: Tue Feb 28, 2006 9:33 pm
by Jabrwock
They don't show up in the WYSIWIG editor's field, but they show up on the entry when I save or preview. They also show up if I switch to HTML edit mode in the editor.

Posted: Wed Mar 01, 2006 10:47 am
by garvinhicking
Then please check your nl2br markup plugin, as that one converts linebreaks to newlines, and it seems your copy+paste also pastes duplicate linebreaks.

Regards,
Garvin

Posted: Wed Mar 01, 2006 4:36 pm
by Jabrwock
That solved it.

Thx!