Bonjour,

J'ai r�cemment mis en place un wysiwyg (ckeditor) pour un projet perso, � l'int�rieur duquel je souhaite mettre des styles de texte pr�d�finis, fa�on CSS.

J'ai bien r�ussi � impl�menter mes styles de texte simples pour le menu d�roulant de l'�diteur, ce qui ressemble � �a :

Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
CKEDITOR.stylesSet.add( 'my_styles',
[
    { name : 'texte', element : 'text', styles : { 'color' : '#FFFFFF', 'font-family' : 'Verdana', 'font-size' : '11px', 'font-style' : 'normal', 'font-weight' : 'normal', 'font-variant' : 'normal', 'text-decoration' : 'none' } }
]);
Cependant, je n'arrive pas � impl�menter mes styles relatifs aux liens hypertextes, qui en CSS ressemblent � �a :

Code css : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
a.menu:link {
	font-family: Verdana;
	font-size: 12px;
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	font-variant: normal;
	text-transform: Aucune;
	color: #FFFFFF;
	text-decoration: none;
}
a.menu:visited {
	font-family: Verdana;
	font-size: 12px;
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	font-variant: normal;
	text-transform: Aucune;
	color: #FFFFFF;
	text-decoration: none;
}
a.menu:hover {
	font-family: Verdana;
	font-size: 12px;
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	font-variant: normal;
	text-transform: Aucune;
	color: #cc0000;
	text-decoration: none;
}
a.menu:active {
	font-family: Verdana;
	font-size: 12px;
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	font-variant: normal;
	text-transform: Aucune;
	color: #cc0000;
	text-decoration: none;
}

Quelqu'un aurait-il d�j� rencontr� ce probl�me, et serait � m�me de m'aider, ou me proposer un lien qui traite du sujet ? Mon ami Google n'arrive pas � m'aider, quant � Chuck Norris, j'ai perdu son num�ro

Merci !