Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » TinyMCE - Add a class to a link

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 853 Views
  • steveforest
    Avatar
    Community Member
    8 Posts

    TinyMCE - Add a class to a link Link to this post

    Hi,

    How can I add a class on a link <a> with TinyMCE. The old version of TinyMCE on SilverStripe seems to have only a few options... I don't see any code pathway (like in Joomla, see attached file), to select the a and add the class with the 'Styles' drop down menu.

    If I click on Edit link, there's no box to enter a class.

    This will be a big problem because the person who will edit the site don't know anything about HTML, so it won't be possible for him/her to add it manually...

    The community seems to agree on that fact that TinyMCE is hard to upgrade on a 2.4 install... I guess people are waiting for SS3!

    An answer would be very welcome ;)

    Best regards,

    Steve

  • martimiz
    Avatar
    Forum Moderator
    1037 Posts

    Re: TinyMCE - Add a class to a link Link to this post

    Hi Steve,

    No, there is no pathway option like you mention. Afaik you can still select the link and drop a class from the styles dropdown. If the link-panel to the right is open, SilverStripe will automatically select the link if you touch it...

    You're right: implemening a new version of TinyMCE would be especially tough, as SilverStripes image and link handling needs to hook into it...

  • steveforest
    Avatar
    Community Member
    8 Posts

    Re: TinyMCE - Add a class to a link Link to this post

    Hi Martimiz,

    Thanks for the answer! Didn't notice that before and it works ! Very happy to have a solution because the person who'll edit the site won't remember how to add a class in the HTML.

    Best regards

    Steve

    853 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.