How to integrate CSS into php output

4 posts by 3 authors in: Forums > CMS Builder
Last Post: August 15, 2011   (RSS)

By trebien - August 12, 2011

Quick question... how can I integrate css into the php output.

For instance, using the editor, I want to apply a class to a link. I see a drop-down for applying a class... but where do I put that information so that it pulls up in the editor?

Putting a SPAN or DIV attribute helps with font color, but not <a> tags for the links.

Re: [trebien] How to integrate CSS into php output

By Mikey - August 13, 2011 - edited: August 13, 2011

I think this may be what you're looking for, but first back up your wysiwyg.css and wysiwyg.php files.

Then go to:
cmsbuilder / lib / open "wysiwyg.css" and look for the line and add your css styles below that line.

You may need to add the "styleselect" to the wysiwyg in cms builder. To do this go to
cmsbuilder / lib / open "wysiwyg.php" and look for this line theme_advanced_buttons1 : "formatselect,fontsizeselect,bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,removeformat,fullscreen", and add the "styleselect" to that line like so:
theme_advanced_buttons1 : "formatselect,fontsizeselect,styleselect,bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,removeformat,fullscreen",

A thread on this as well:
http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/gforum.cgi?post=88950;search_string=wysiwyg.php;t=search_engine#88950

Re: [trebien] How to integrate CSS into php output

By Jason - August 15, 2011

Hi,

You can set a css class that changes the background to black (it sets this in a span tag) and the font color to white. That way you can see what your typing. For example, in wysiwyg_custom.css you can use a class like this:

.whiteTextOnBlackBackground{background-color:black;color:white;}

You can then select this when you need to use it in your wysiwyg editor.

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/