Also need to make sure stylesheet can be used in the rte. Go to datatype settings of your rich text editor datatype, check relevant stylesheet and all should work well
could you give bit more information about HOW it's not working? You can see the defined style in the "styles" dropdown in the rich text editor? If so, is it when you apply the style to some text that it does not work?
I create the style sheet and then its property name as .para. Now i goes in content write the text in the rte and just select the style property in the dropdown list but it cant reflect in the editor not even in page.
If you use the "HTML" view button in the RTE, is the style class then applied to the element directly or wrapped with a <span class="yourstyle"></span> kind of way?
I think this could maybe have something to do with CSS specificity...
Are you trying to apply the style on simple texte, or is it on a html element like a link or something? Because I think the RTE is by default configured in a way that not all element/tags are allowed to have a class attribute defined.
Also - just to make sure :-) : do you actually select/highlight the text to format prior to selecting the style in the list?
css property problem
hi,
I am create the property of css by .somename and want to give in richtext editor but it cant work
plz help me out
http://our.umbraco.org/wiki/how-tos/customizing-the-wysiwyg-rich-text-editor-(tinymce)/add-styles-to-the-drop-down-menu-for-editors-to-use
Cheers,
/Dirk
Hi,
Yha i Read this but still it not apply...
Also need to make sure stylesheet can be used in the rte. Go to datatype settings of your rich text editor datatype, check relevant stylesheet and all should work well
Cheers,
/Dirk
In the datatype i choose my style sheet in which i create the property but still it not work
Hi Prasad
could you give bit more information about HOW it's not working? You can see the defined style in the "styles" dropdown in the rich text editor? If so, is it when you apply the style to some text that it does not work?
/Jan
yha ..
I create the style sheet and then its property name as .para. Now i goes in content write the text in the rte and just select the style property in the dropdown list but it cant reflect in the editor not even in page.
Hi Prasad
If you use the "HTML" view button in the RTE, is the style class then applied to the element directly or wrapped with a <span class="yourstyle"></span> kind of way?
I think this could maybe have something to do with CSS specificity...
/Jan
no class is applied in rte
Hi Prasad
How have you defined the style in the stylesheet?
What have you written in the different fields?
Name: ?
Alias: ?
Style: ?
/Jan
Name: Para
Alise :.para
style :color:#ac0404; font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size:16px; text-decoration:underline; padding-left:50px; margin-top:20px;
Hi Prasad,
Are you trying to apply the style on simple texte, or is it on a html element like a link or something? Because I think the RTE is by default configured in a way that not all element/tags are allowed to have a class attribute defined.
Also - just to make sure :-) : do you actually select/highlight the text to format prior to selecting the style in the list?
Cheers,
Michael.
is working on a reply...