close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Adding Styles to the HTML Editor

Thread began 2/08/2010 1:11 pm by christine310921 | Last modified 2/19/2010 11:09 pm by christine310921 | 4052 views | 15 replies

neilo

You can define styles for the h1 - h6 tags, which goes some way to enforcing site style, by editing the cms 'HTMLEditor/fckconfig.js' file, some way down under '// Basic Block Styles (Font Format Combo).'

This has to be done in this format, ensuring that the 'punctuation' is correct, e.g:

'h1'			: { Element : 'h1', Styles : { 'color' : 'Red', 'font-size' : '18px', 'text-decoration' : 'underline' } },

'h2' : { Element : 'h2', Styles : { 'color' : 'C1D0E1', 'font-size' : '14px', 'text-transform' : 'uppercase', 'font-weight' : 'bold' } },

'h3' : { Element : 'h3', Styles : { etc.


Back up your fckconfig.js file first if you have a go. You will probably have to clear your browser cache to see the changes.

As Jimmy says, you can only add classes, (classes begin with a dot, not a #) but you could add any new classes to your stylesheet:


.anewstyle {
color: #FFFFFF;
border: 1px solid #131D2B;
padding: 6px;
background-color: #2D4262;
}

and have them picked up by the Editor.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...