Page 1 of 1

paragraph problems

Posted: Thu Dec 28, 2006 3:12 pm
by dogshed
This may not be a bug but it sure is annoying.

I have an entry with text that I copied from an email and noticed that when I changed to a different template the paragraphs did not display with a space like the other entries.

In the edit mode I toggled the "Toggle HTML source" button and there was a bunch of div tags. I removed all the HTML form the entry leaving the plane text.

[/code]
On Monday November 20th I noticed my <a href="http://en.wikipedia.org/wiki/Herpes_zoster" title="Shingles on Wikipedia">shingles</a> was coming back. I decided to try out the Korean medical system and get some drugs. I walked past the clinic because I couldn't remember where it was.
I went back and found the clinic. Very third world country.[/code]

I then toggled the "Toggle HTML source" button back to wysiwyg, put my cursor at the end of "get some drugs.", hit the return key hoping it would just insert a paragraph tag. However it splits the paragraph and also makes a space between the link for shingles and the word "was".

Another toggle reveals it put the opening paragraph tag in some white space instead of at the beginning of the document.

I think it should put the opening p tag after the next closing p tag above and if it can't find one above then put the opening p tag at the beginning of the entry.

Code: Select all

On Monday November 20th I noticed my <a href="http://en.wikipedia.org/wiki/Herpes_zoster" title="Shingles on Wikipedia">shingles</a><p> was coming back. I decided to try out the Korean medical system and get some drugs.</p><p> I walked past the clinic because I couldn't remember where it was.
I went back and found the clinic. Very third world country.
[/code]

Re: paragraph problems

Posted: Thu Dec 28, 2006 9:05 pm
by garvinhicking
Hi!

Sadly this is a problem of the bundled HTMLArea editor. Maybe you can try to simply push "Shift-Enter" in that case, which would just add a "<br>" tag.

Wrapping around <p> tags is a difficult thing, and htmlarea things it's better to put it after the <a> tag...whateve rthe reason. Odds are if that were to be changed, other bugs would be introduced.

Sadly HTMLArea is not actively developed further, so we need to focus on another WYSIWYG editor in the future, like tinyMCE or FCKEditor. But both cannot be bundled with our BSD-license software, so we currently only offer them as additional plugins...

Best regards,
Garvin