Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

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
Jan 29, 2008 11:33
Vote:
 
You could write a plugin to the editor to do the trick ofcourse..
#16750
Feb 01, 2008 14:01
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.