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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Glenn

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

Post 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...
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

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

Post 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...
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post by tsw »

If I change format to normal before writing it works for me..
Glenn

That's it!

Post 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>
Last edited by Glenn on Mon Apr 03, 2006 7:08 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”