How do I add class to a link in the editor?

Vote:
 
I want to add classes to links in the editor. Almost all other dialogs have options for classes, such as table cells and images. Adding a class by usging the paragraf format leads to an error, saying invalid html or so. The under laying reason is this. We are developing a website that will follow the XHTML 1.0 strict. In this standard the link attribute TARGET is forbidden. However, our client still wants to control if a link will be opened in a new window or not. This can be done by using a javascript. This script detect if the user clicks on a link with certain class. But then the web editor must be able to add a class to a link. Regards, Sebastian
#15984
Mar 25, 2008 19:07
Vote:
 
You could write a plugin to the editor to do the trick ofcourse..
#16750
Mar 25, 2008 19:16
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.