Hello,
i want be able to edit the src and write my own style.
actually, if i put this in the src:
it is converted to:
which i don't want.
i know about the fckstyles.xml file but it doesn't seems to be the method i need.
please help
--
Regards
i want be able to edit the src and write my own style.
actually, if i put this in the src:
<div style="float:left; width:30px; height:30px; background:url("/contours/bas_gauche.gif") left no-repeat;"> </div>
it is converted to:
<div left="" bas_gauche.gif="" contours="" style="float: left; width: 30px; height: 30px;"> </div>
which i don't want.
i know about the fckstyles.xml file but it doesn't seems to be the method i need.
please help
--
Regards
Re: how to add styles ?
I'm Italian
the solution is :
(copy and past your styles in fckeditor/editor/css/fck_editorarea.css
in this file for example you have :
in your fckeditor/fckstyles.xml put this code
Re: how to add styles ?
I have tried entering new styles in the "fckstyles.xml" and I have entered new styles in "fck_editorarea.css" to no effect at all.
I have even deleted styels from the "fckstyles.xml" but when looking in the editor they are still there.
FCK don't seems to care at all about any of my changes.
How does one remove unwanted styles from the editor and add new styles?????
Re: how to add styles ?
have you tried clearing you browser cache?
Re: how to add styles ?
I have put some class defnitions into fck_editorarea.css that correspond to classes I want my user to be able to apply.
I put this into fckstyles.xml:
And those classes show up in my editor in the styles dropdown, but "quote" is the only one that can be selected, and it is not adding class="quote" or class="author" when I try to apply it. Why? (Yes I have cleared my cache after every save.)
Even some p tags that have no class assigned (nor do I want them to have a class attribute) the "quote" class is selected in the styles dropdown, and I can't see any way to apply "none" either. If I click over to source mode and manually change <p> to <p class="quote"> and refresh back to HTML view mode, it's perfect. I just can't figure out how to get the editor to apply the styles I've added to the UI. Help!