Project:Marinelli
Version:6.x-2.95
Component:Code
Category:bug report
Priority:normal
Assigned:guru81
Status:active
Issue tags:align, CSS, fckeditor, Marinelli, styles, text, theme

Issue Summary

If you align the text in the fckeditor, text remain align on left.

Fckeditor use this style to align text:
.rteleft {
text-align: left;
}
.rteright {
text-align: right;
}
.rtecenter {
text-align: center;
}
.rtejustify {
text-align: justify;

I tryed to reply .rtecenter with .content p.rtecenter, but the problem still remains.

With other themes everything work ok.

Regards

Comments

#1

#2

Assigned to:Anonymous» guru81
Status:active» closed (fixed)

i used a custom css, made by me. And now works correctly.

#3

It would be fine, if you could let us participate in your efforts resolving the problem ;)

#4

I am having the same exact problem as guru81, but I don't know how to do his solution. Do I need to fully understand CSS to do this, or can I get by with a step-by-step how-to on just this one problem....if someone would be so kind.

Thanks in advance...

#5

So how did you do it?

#6

Status:closed (fixed)» active

#7

The troubleshooting guide gave this solution...I'm hoping somebody can translate it for me:

"For Filtered HTML things are a bit more complicated. For example if your theme defines such CSS style:
.content p { text-align: left; }

text-align property set in .rteright class will not work. To align

tag, you will have to edit modules/fckeditor/fckeditor.css file and create a style, that will be applied to

tag:

.content p.rteleft {
text-align: left;
}
.content p.rteright {
text-align: right;
}
.content p.rtecenter {
text-align: center;
}
.content p.rtejustify {
text-align: justify;
}
"

So, when I look at my theme (Marinelli/Giordani) CSS, I'm not sure what exactly I'm looking for....

Can anyone explain a little further? This is all in an effort to allow Filtered HTML (it works in Full - but I don't want to use Full for security reasons) center justify. Also, indent doesn't work, and numbered lists don't indent (I don't know if there is a related solution).

AttachmentSize
marinelli_themecss.png 222.26 KB

#8

Version:6.x-2.9» 6.x-2.95

Disable and uninstall FCKeditor through Administer -> Modules. Download and install drupal´s module WYSIWYG http://drupal.org/project/wysiwyg. Download fckeditor from official site http://www.fckeditor.net/download. Extract fckeditor.xxx.zip content to folder named libraries placed in sites/all subdirectory, so it should looks like /www/sites/all/libraries/fckeditor with two subdirectories editor and _samples.

Configure Fckeditor´s settings ( Administer -> WYSIWYG) and enjoy aligning text. :)

Ajax plugin - wysiwyg http://drupal.org/project/ajax could help, too.

nobody click here