close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Totally lost with HTML editor

Thread began 2/05/2010 1:02 am by jcav26033 | Last modified 2/07/2010 2:36 am by jcav26033 | 1661 views | 13 replies

neilo

When I added my own custom styles (from my site stylesheet) I did it using the seperate HTMLEditor extension, and even that was tricky at first.

However, I think that the changes it made were effectively the following, and involve (for PowerCMS):

HTMLEditor/custom/


contents_insert_ContentValue1.js
contents_insert_ContentValueStyles1.xml
contents_update_ContentValue1.js
contents_update_ContentValueStyles1.xml

and

your own stylesheet

The two xml files comprise a list of class styles that can be made available to the editor, and each takes the form of:


<Style name="right" element="span" >
<Attribute name="class" value="right" />
</Style>


And these are referenced from (so must be in) your own stylesheet. So if you have a class in your stylesheet like:



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


you would add a section into your contents_insert_ContentValueStyles1.xml and contents_update_ContentValueStyles1.xml files like:


<Style name="sidebardk" element="span" >
<Attribute name="class" value="sidebardk" />
</Style>


for each of the styles you want included.

Then in each of your two contents_xxxx_ContentValue1.js files, near the bottom you need to enter your paths, first in this line:


FCKConfig.EditorAreaCSS = '../../css/cms_syle.css'; // relative to fckeditor/editor/fckeditor.html

which is the path to your stylesheet relative to fckeditor.html, so if your stylesheet was called 'cms_styles.css' and was in a folder 'css' which was in the same directory as all your CMS files and folders, the path would be the same as in the example above.

then this line:

FCKConfig.StylesXmlPath = '../custom/contents_xxxx_ContentValueStyles1.xml'; // (xxxx = insert or update) relative to fckeditor/editor/fckeditor.html

which is the path to the xml file, again relative to fckeditor.html, and is likely to be the same path as the example above.

---------------------------------------------------------------------------------------

So, no guarantees (back-up files before making changes), but I've just re-tested it and it works for me.

NOTE: You will almost certainly have to close any open windows/tabs that have HTMLEditor instances currently showing, and clear your browser cache before these will show. They (should) appear at the bottom of the 'Style' drop-down list.

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...