Hi,
i would set a specified class to a-Tags like this: <a class="thickbox"></a>
I wrote the following Code into the fckstyles.xml:
The Stylemenu shows the "Popup", but it takes no effect, when i select an existing Link (a-Tag) and then set the "Popup"-Style on it.
When i try it with the element "span", like that:
there is no problem, and it works, but it should work with an a-element, too ?
i would set a specified class to a-Tags like this: <a class="thickbox"></a>
I wrote the following Code into the fckstyles.xml:
<Style name="Popup" element="a"> <Attribute name="class" value="thickbox" /> </Style>
The Stylemenu shows the "Popup", but it takes no effect, when i select an existing Link (a-Tag) and then set the "Popup"-Style on it.
When i try it with the element "span", like that:
<Style name="Popup" element="span"> <Attribute name="class" value="thickbox" /> </Style>
there is no problem, and it works, but it should work with an a-element, too ?
Re: How can i style <a> - Tags with fckeditor.xml ?
Are there any ideas or workarounds?

Styling <a>-Tags seems not to be supported by Fckeditor, but this would be a nice feature for a new release, i think.
Re: How can i style <a> - Tags with fckeditor.xml ?
Re: How can i style <a> - Tags with fckeditor.xml ?
span.thickbox a {color: red;}
span.thickbox a:hover {color: green;}
Re: How can i style <a> - Tags with fckeditor.xml ?
That's not the problem, i know how to style a tag with css-commands, but i need to set an attribute / class direct into the <a>-tag, for using an javascript effect like that: http://jquery.com/demo/thickbox/. I'm using it to create "nice" popups from a link.
Re: How can i style <a> - Tags with fckeditor.xml ?
1) Open the following file in your editor: .....\fckeditor\skins\editor\dialog\images\fck_image.js
2) Find function Ok()
3) Almost at the end of this function you will find:
SetAttribute( oLink, '_fcksavedurl', sLnkUrl ) ;
SetAttribute( oLink, 'target', GetE('cmbLnkTarget').value ) ;
4) Add the following:
SetAttribute( oLink, 'class', 'thickbox' ) ;
5) Save the file and your problem should be fixed!
Please notice that FCKeditor will only add this attribute if you have entered a url under the Link tab.
Good Luck!