Style Sheet for Anchor Tags

birwin's Avatar

birwin

26 Apr, 2016 07:35 PM

Hi there,

I know it is possible to give a stylesheet to the WYSISWYG box which show up in the WYSIWYG drop down, but I was wondering if it is possible to have a stylesheet for the Anchor popup box.

The reason for the request has to do with, we have anchor buttons, so the style should only be choosable (or applied to) an anchor and should not appear in the default WYSIWYG styles

  1. Support Staff 1 Posted by Tim on 27 Apr, 2016 01:08 PM

    Tim's Avatar

    Hi,

    At the current time, this particular drop down menu will be populated with the CSS classes that you've specified at the Site level (or in your Global Content Preferences if you don't have anything specified in your Site). Unfortunately there isn't any way to configure this menu separately from the WYSIWYG styles drop down (they will both list the same classes).

    What you could potentially do (although not ideal) is to list your CSS classes in such a way that users can see what might be available specifically for different elements. For example, your CSS Classes field (at the Site level) could look something like:

    ----Tables----, red, blue, ----Forms----, green, black, ----Anchors----, red, black
    
    The downside to this is that the 'dividers' will technically be selectable from that Styles menu and will therefore create an additional <span> tag around any content to which those styles are applied (ex. <span class="----Tables----">text here</span>). However, since you won't have any matching classes in your specified CSS file, this shouldn't change the way this content is displayed.

    I hope this helps! Let me know if you have any additional questions.

    Thanks

  2. 2 Posted by birwin on 11 May, 2016 05:50 PM

    birwin's Avatar

    Appreciate the reply - I figured that was the case. Appreciate the follow up!

  3. Ryan Griffith closed this discussion on 11 May, 2016 07:08 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

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM