Marinelli & FCKEditor

kivancsi47 képe

Sziasztok!

Felinstalláltam a Drupál 5-öt és az Fckeditort. Minden működött jól Garland sminkkel,
még azt is megkérdezte a rendszer hogy a beviteli forma, szűkített HTML, PHP vagy full HTML legyene.

Váltottam Marinelli sminkre és azóta az Fckeditor formázásai nem igazán a legjobbak, például majdnem mindent balra rendez, nincs beviteli forma választási lehetőség sem.

Az adminisztrációs oldalon alapból full html-t választottam beviteli formának, de ettől függetlenül
hibásan működik az fckeditor.

Mi lehet a probléma?

Köszi

Drupal verzió: 
Fórum: 
kivancsi47 képe

Kérdésemre a válasz:

Text alignment doesn't work (198637)

In fckeditor.config.js (located in fckeditor module directory), the following classes are defined to provide text alignment functionality:

FCKConfig.JustifyClasses = ['rteleft','rtecenter','rteright','rtejustify'] ;

Unfortunately, some themes may override those styles and text alignment may not work as expected.
If you're using Full HTML input format, you may simply comment out this line:

//FCKConfig.JustifyClasses = ['rteleft','rtecenter','rteright','rtejustify'] ;

and FCKeditor will use inline styles instead:

sample text

. The problem is that inline styles may be used only with Full HTML. Filtered HTML will strip that code, so don't use this solution with Filtered HTML input format.

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;
}

Use DOM inspector (in Firefox) to check why alignment doesn't work and to correct CSS styles. There is no universal workaround for this.

0
0