I'm using CKEditor and want to align text but how to do this?

In HTML elements and attributes i have this:

p[align<center?justify?left?right],

and in Style properties i checked:

text-align
text-decoration

When i look at the source code:

<p class="rteright">
Lorem ipsum ...</p>

In Rules for Class Names and i think that's the problem, i have nothing. What do i write in Rules for Class Names, because i don't know?

Comments

I forgot to mention that i also have checked in Style properties all margin and padding settings.

I think i found the solution.

I changed:
p[align<center?justify?left?right],
into:
p[class|align<center?justify?left?right],
Then in Rules for Class Names i put the following:
rtecenter,
rtejustify,
rteleft,
rteright

Now i can align my text. Can someone tell me if this is a right setup?

@CFW,

Thank you for this solution. I had the same problem and this fixed it. BTW, it looks correct to me, but I am not an expert on input filters.

Status:Active» Closed (fixed)

This issue is long-since fixed.