21287 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 575 Views |
-
TinyMCE - Add a class to a link

10 February 2012 at 11:14am
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
-
Re: TinyMCE - Add a class to a link

11 February 2012 at 5:38am
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...
-
Re: TinyMCE - Add a class to a link

17 February 2012 at 5:11am
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
| 575 Views | ||
|
Page:
1
|
Go to Top |
