Bipul Dobhal
-
9/28/2006 8:33:22 AM
want to apply style in FCKeditor "Editable region"
Hi,
I want to add my own style in Editable region and able to apply styles for individule styles,color,size by adding some more style tags in fckstyles.xml like this
<Style name="Blue Ruler" element="hr"> <Attribute name="size" value="1" /> <Attribute name="color" value="#C0CDD9" /> </Style> <Style name="Paragraph Body" element="span"> <Attribute name="style" value="FONT-SIZE: 10px; FONT-FAMILY: verdana,arial,sans-serif;" /> </Style> <Style name="Paragraph Heading" element="span"> <Attribute name="style" value="FONT-SIZE: 10px; FONT-FAMILY: verdana,arial,sans-serif;font-weight: bold;" /> </Style>
But when i add same style tag for css class like
<Style name="MyClass" element="span"> <Attribute name="class" value="MyClass" /> </Style>
this effect is not reflected their, even i made change in "fckconfig.js" file to point my own css file like
FCKConfig.EditorAreaCSS = '/CSS/myownstyle.css' ;
as "myownstyle.css" is a style sheet made by me to render changes in pages..
kindly suggest me how to render my css class effect in editable region..
Thanks, Bipul Dobhal
|