I just installed the latest fckeditor and it seems to be working except that its stripping out the <p> tags.

For example, I copy and paste this
With the national jobless rate still near 10 percent, the recession grinding onward and benefits claims continuing to mount, the entire unemployment system is being stretched beyond capacity.

Since the end of 2008, some 29 states, including California, have completely run out of funds to pay unemployment claims, and have resorted to borrowing federal money.

and after saving it and viewing page i get this
With the national jobless rate still near 10 percent, the recession grinding onward and benefits claims continuing to mount, the entire unemployment system is being stretched beyond capacity.
Since the end of 2008, some 29 states, including California, have completely run out of funds to pay unemployment claims, and have resorted to borrowing federal money.

The input format is set to: Filtered HTML
and the Allowed HTML tags</b> is: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption>

Line break converter is turned off. (unchecked).

what am I doing wrong?

thank you.

C

Comments

zbricoleur’s picture

That's the problem. It strips out <p> tags. (Notice the <p> tag is not in the allowed list.) Try using Full HTML.

mndonx’s picture

It looks like they are allowing <p> in the Allowed Tags list (the second one is <p>).

What does your HTML look like? Are there any tags around the paragraph?

Amanda

mndonx’s picture

I'm sorry, I'm confused. Are you pasting in the <p> tags or not? I'm not seeing them in what you posted above. [Edit, sorry - just saw that this was in FCK Editor. Guess I'd try turning on the line break converter.]

If you aren't, you will need to turn the Line Break converter on for <p> tags to be applied.

zbricoleur’s picture

Yes, the <p> tag is in the list. My bad; don't know how I missed that.

mshepherd’s picture

<p> is listed in the allowed tags in your list isn't it...?

Yes, I'd suggest trying the Full HTML input format and that at least will help you decide if it's your editor or the input format that's causing your problem.

Also, when you paste the text into fck, do you paste as plain text or directly into the editor's window without turning rich text editing off?

ceci123’s picture

Full HTML is turned on but it makes no difference.

Line break converter is also checked.

When I paste the text i tried pasting in both ways. As plain text and directly into editor window.

BTW. The only way to get the extra needed space between paragraphs is to place an additional <p>&nbsp;</p> but this should not be necessary.

For example, this will add right space

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam nibh. Nunc varius facilisis eros. Sed erat. </p>
<p>&nbsp;</p>
<p>Nunc at velit quis lectus nonummy eleifend. Curabitur eros. Aenean ligula dolor, gravida auctor, auctor et, suscipit in, erat. </p>

This will not

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam nibh. Nunc varius facilisis eros. Sed erat. </p>
<p>Nunc at velit quis lectus nonummy eleifend. Curabitur eros. Aenean ligula dolor, gravida auctor, auctor et, suscipit in, erat. </p>

Thanks.

C

ps. is there a way to attach files here?

ceci123’s picture

I might have found the problem but don't know how to fix it.

I was working on my own custom template (using BASIC THEME) and I temporarily switched back to Garland and the text looks correct. It is my custom theme that's screwing it up.

Any idea why or how I can fix this?

thanks

mshepherd’s picture

Your basic theme probably does not have any spacing defined between paragraphs. It's common for base themes to reset things like padddings and margins. You probably need to include a CSS rule in your on of your theme's CSS files. Something like:

p {
  padding-bottom:0.5em;
}
ceci123’s picture

Like you had suggested I had to add

p {
	padding-bottom:0.5em;
 }

to the css.

Before it only had this

p {
	margin-top: 0;
	}

Question, is padding-bottom:0.5em; a good amount of space to have between paragraphs? Its probably up to you but I am wondering if there are standards...

thanks again for saving me.

C

mshepherd’s picture

To an extent, I guiess it's a matter of personal taste. I use this value generally. I prefer to use an em value rather than a px value as this scales with text size. If your visitor has a large text size then a px value which looks right at your preferred text size might be invisible at theirs. They might not be able to see the paragraph breaks and that certainly will make your text more difficult to read.

I've not heard of standards regarding this though.

ceci123’s picture

just added padding-bottom:13px and it looks good.

tnxs.

ABU-1’s picture

Useful information ..I am very happy to read this article..thanks for giving us this useful information. Fantastic walk-through. I appreciate this post. how to make money