Need Plugin or WYSIWYG editor to help with formatting

Creating and modifying plugins.
Post Reply
cody
Regular
Posts: 41
Joined: Sun Feb 11, 2007 2:28 pm

Need Plugin or WYSIWYG editor to help with formatting

Post by cody »

Hi,

Is there a Plugin or WYSIWYG edito that will give me the line breaks that I want for formatting?

If I type out in the default WYSIWYG editor a sample like this:

Some time ago I started a paragraph about stuff for Serendipity forums and it looked like this. I liked the way it looked.

I was able to start a new paragraph and there was a line space in between the paragraphs, but not now.


It ends up appearing in the Blog likethis:

Some time ago I started a paragraph about stuff for Serendipity forums and it looked like this. I liked the way it looked.
I was able to start a new paragraph and there was a line space in between the paragraphs, but not now.


Ideally I would like to just be able to type the article and hit an extra return [Enter] to get the line breaks I would like without going back to add any code which is how I've been fixing the entries.

Thanks,

Cody
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Need Plugin or WYSIWYG editor to help with formatting

Post by garvinhicking »

Hi!

This can be a matter of your stylesheet. Depending on your template you might need something like this in your style.css:

Code: Select all

.serendipity_entry p {
margin-bottom: 1.5em;
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

While the provided WYSIWYG editor doesn't support Serendipity style sheets, you should be able to use the Preview button to see what it will look like.
Judebert
---
Website | Wishlist | PayPal
cody
Regular
Posts: 41
Joined: Sun Feb 11, 2007 2:28 pm

Re: Need Plugin or WYSIWYG editor to help with formatting

Post by cody »

garvinhicking wrote:Hi!

Code: Select all

.serendipity_entry p {
margin-bottom: 1.5em;
}
I have the following in my stylesheet:

Code: Select all

.serendipity_entry p {
    margin-top: 0px;
    padding-bottom: 10px;
What should I leave, remove, or add?

Thanks,

Cody
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Need Plugin or WYSIWYG editor to help with formatting

Post by garvinhicking »

Hi!

Actually, in your stylesheet (at least on your alderson arts site) you have this:

Code: Select all

.serendipity_entry p {
    margin: 0px;
    padding-bottom: 0px;
}
if it were like you wrote, it should work, because once you assign a padding-bottom or margin-bottom, it should show the spacing.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
cody
Regular
Posts: 41
Joined: Sun Feb 11, 2007 2:28 pm

Post by cody »

I fixed it. I was looking at the wrong stylesheet. :oops: Thanks for pointing out the obvious. :lol:

And is there a WYSIWYG editor that supports the stylesheets?
Post Reply