Page 1 of 1

FCKEditor problems with inserting <p> tag instead of <br />

Posted: Mon Apr 03, 2006 12:51 am
by Glenn
In previous versions of FCKEditor when you hit the Return key it would insert a tag (Otherwise known as a "hard return"). If you wanted a line break
(otherwise known as a "soft return") you would hit shift-return.

Now I can only get line breaks
when I hit the Return key. How do I insert a hard return wihtout going into the source and inserting the tag manually?

Thanks in advance...

Re: FCKEditor problems with inserting <p> tag instead of <br />

Posted: Mon Apr 03, 2006 10:05 am
by Ted
For me, if I hit enter three times, I get:

Code: Select all

<br />
<p> </p>
<br />
<p> </p>
<br />
<p> </p>
<br />
<p> </p>
<p><br /></p>
That makes no sense at all...

Re: FCKEditor problems with inserting <p> tag instead of <br />

Posted: Mon Apr 03, 2006 10:56 am
by tsw
If I change format to normal before writing it works for me..

That's it!

Posted: Mon Apr 03, 2006 6:48 pm
by Glenn
You hit the nail on the head with the "Normal" format. It also explains Ted's results. However, it does act a little wierd. Here's what I have found:

TEST RESULTS:

Add New Content: Default (no format chosen):

Enter:

one[return]
two [return][return]
three[return][return][return]
four[return][return][return][return]
end

Resulting source code:

Code: Select all

one<br />two<br /><br />three<br /><br /><br />four<br /><br /><br /><br />end.
Select all then choose "Normal" in the format menu.
Resulting source code:

Code: Select all

<p>one</p>
<p>two</p>
<p><br />three</p>
<p><br /></p>
<p>four</p>
<p><br /></p>
<p><br />end.</p>
At the end of the last line (end.) add:

one[return]
two [return][return]
three[return][return][return]

Resulting source code:

Code: Select all

<p>one</p>
<p>two</p>
<p><br />three</p>
<p><br /></p>
<p>four</p>
<p><br /></p>
<p><br />end. one<br />two<br /></p>
<p>three<br /></p>
<p><br />end.</p>
Select all text and delete. Format box defaults back to no formatting. Choose "Normal" before entering any text. Enter:

one[return]
two [return][return]
three[return][return][return]
end

Resulting source code:

Code: Select all

<p>one<br />two<br /></p>
<p>three<br /></p>
<p><br />end</p>
CONCLUSIONS:

When no formatting has been chosen hitting the "Return" key will always create a line break
.

Converting unformatted text results in all single returns between lines (as in: one[return]two)to be converetd to paragraphs (onetwo).

Beginning with "Normal" formatting before entering text, or entering text after converting to "Normal" formatting offers the same result: single carriage returns create line breaks
and double carriage retuns create paragraphs ....

In all circumstances, soft returns ... tag (an opening tag will add a space above your first line in IE on Mac, not sure about windows) but you DO want ... tags on the rest of your page you can enter this:

Headline[return]
Subheading[return]
Paragraph one goes here.[return]
Paragraph two goes here.

Then select from Paragraph on down and convert to "Normal" formatting to achieve this:

Code: Select all

Headline<br /> Subheading
<p>Paragraph one goes here. </p>
<p>Paragraph two goes here.</p>