Skip navigation

CQ5

Currently Being Moderated

External stylesheet not working for text component

Jul 25, 2012 4:47 AM

I am trying to specify an external stylesheet to use for the text component. I can specify styles individually without a problem but when I try and reference a stylesheet it does not work.

 

In the text WYSIWYG editor all I see is [None] in the styles drop down.

 

I am following these instructions:

http://dev.day.com/docs/en/cq/current/administering/configuring_rich_t ext_editor.html#Specifying%20the%20Location%20of%20Your%20Stylesheet

 

This is the contents of my css file:

 

.text-highlight-blue { color: #336699; }

 
Replies
  • Currently Being Moderated
    Jul 25, 2012 10:06 AM   in reply to Dan Chapman

    So I am little confused. Are you trying to only specify a the externalStyleSheets and not specify the rtePlugins/styles element in your dialog. The two elements server different purposes. The externalStyleSheets element allows you to specify a CSS file that gets applied to the the rich text editor so that text appears in the editor styled in the same way it will be styled when displayed on the page, it does not drive the contents of the style drop down. The style drop down is driven by the rtePlugins/styles element. In an ideal world you would specify both values so that not only do the styles show up in the drop down, but the text in the editor appears properly styled.

     

    You also have to include the styles in from your external style sheet in you page's stylesheet so that the formating is properly displayed when the page renders.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points