Change WYSIWYG styles based on directory

joey.peterson's Avatar

joey.peterson

Dec 16, 2015 @ 04:46 PM

Is it possible to change the styling in the WYSIWYG editor depending on the directory in a site? I know that I can change the styles at a site level, but is it possible to change the styling at a directory level inside a site?

  1. Support Staff 1 Posted by Tim on Dec 16, 2015 @ 05:00 PM

    Tim's Avatar

    Hi Joey,

    There isn't any way to have the Styles drop down be dependent on particular directories within a Site. As you mentioned, the only way to supply Styles is going to be at the Site level (or at the Global level if you're looking to make it system-wide).

    One thing you could potentially do - while not optimal - would be to have all of your Styles in one CSS file, but provide the classes for the specific directories in their own sections in the drop down. For example, you could have your CSS Classes field at the Site level contain:

    ----Athletics----, headlng, text, ----About Us----, heading, highlight
    
    This would create visual indicators in the drop down menu denoting the classes available for each directory in your Site. A couple of obvious downsides to this:
    • The dividers themselves are selectable (so, a user could select '----Athletics----' which would, in turn, create a <span class="----Athletics----"> tag in the source code)
    • You would need to manually add to the CSS Classes field any time a new directory is created in your Site where you wanted to provide specific CSS styles for that directory

    Last but not least, I just sent you an invite to our Idea Exchange. I would encourage you to vote/comment on this idea as it seems like it is somewhat related to what you are looking for in terms of functionality.

    Let me know if you need anything else.

    Thanks!

  2. Tim closed this discussion on Jan 07, 2016 @ 04:32 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac