wysiwyg class links

4 posts by 2 authors in: Forums > CMS Builder
Last Post: April 14, 2011   (RSS)

By rez - April 13, 2011

When adding a link in the editor, I see a drop menu of classes. There is an example class in there.

I have a css class, .pdflink which adds a pdf icon to the link.

How do I get my class in that drop menu so a user can easily apply it? I read something about an adv link folder or plugin in a very old post in here but was confused and dont see clear info.

I currently have a custom_wysiwyg config file for all my buttons but dont see anything mentioned in there.

thanks for any help.

Re: [Jason] wysiwyg class links

By rez - April 13, 2011 - edited: April 13, 2011

Thanks,
I saw that post but it seems to be referring to the classes on the toolbar for text formatting. When you highlight text and click the link button, a pop-up appears with specific classes for the link in a drop menu. This is where i want my custom class. This is different, right?

Re: [rez] wysiwyg class links

By Jason - April 14, 2011

Hi Rez,

Okay, I see what you're trying to do.

Open up cmsAdmin/lib/wysiwyg.css

At the bottom of the file you'll see this:

.exampleClass { color: red; font-size: 28px; }

Below this, you can add any CSS classes you want. When you're done that, save the file and log into CMS Builder. When you highlight a piece of text in your wysiwyg field and click on the link button you'll have a drop down called "class". In this drop down you should see the classes you had added to the file.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/