close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Editor Styles

Thread began 11/05/2009 10:22 pm by Cologne | Last modified 11/24/2009 12:30 pm by Jimmy Wu | 2588 views | 10 replies |

Cologne

Editor Styles

Hi,

can someone please explain the Editor Styles, for dummies :-)

I know what that seems to be, but I cant make it work.

Default is always that red in the sryles box.

Do I have to create special CSS for the editor?

Thanks a Lot,
Denis

Sign in to reply to this post

Jimmy Wu

The editor styling is to allow you to be able to create your own custom css styling for users to be able to utilize in your editor instance. If you create your own css file and select that, you will be able to include the different classes that the user can then use. The available styles listed will need to be selected to show up in the editor. Click on them and then use control/command (depending on your operating system) and click to select additional styles you want in your editor.

Sign in to reply to this post

CJ

Hi Jimmy,

I have this Editor Styles problem too.
I create my own css file and used control and click to select additional styles you I want in my editor, but all I see is the "Red Title" style.
In the .js file the StylesXmlPath is:

FCKConfig.StylesXmlPath = '../custom/editor_omschrStyles3.xml';

I also uploaded this xml file to the server.

I just can't make this work.
Can you please help me with this?

Sign in to reply to this post

Jimmy Wu

Can you post up a link to a page where I can see this behavior?

Sign in to reply to this post

CJ

This is the link: editor.php

The "editor_omschr1.js" looks like this:

// Custom configuration for iRite
FCKConfig.XMLFullName = 'editortest';
FCKConfig.XMLFileName = 'editortest.xml';
FCKConfig.SkinPath = 'skins/silver/'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.DocType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';

FCKConfig.AutoDetectLanguage = true;
FCKConfig.DefaultLanguage = 'default';

FCKConfig.StartupFocus = false;
FCKConfig.FullPage = false;

FCKConfig.BaseHref = '';
FCKConfig.DefaultLinkTarget = '_self';

FCKConfig.ToolbarSets["Custom"] = [ ['Source'], ['Style','FontFormat'], ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']]; /* Toolbar end */

FCKConfig.ForceStrongEm = false;
FCKConfig.FormatIndentator = ' ';
FCKConfig.EnterMode = 'p';
FCKConfig.FillEmptyBlocks = false;
FCKConfig.FormatOutput = false;
FCKConfig.FormatSource = false;
FCKConfig.IncludeGreekEntities = false;
FCKConfig.IncludeLatinEntities = false;
FCKConfig.ProcessHTMLEntities = false;
FCKConfig.ProcessNumericEntities = false;
FCKConfig.AdditionalNumericEntities = '';
FCKConfig.ForcePasteAsPlainText = false;
FCKConfig.CleanWordKeepsStructure = false;


FCKConfig.EditorAreaCSS = '../../editor.css'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.BodyClass = 'hoofdtekst';
FCKConfig.StylesXmlPath = '../custom/editor_omschrStyles3.xml'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.ManagerEnabled = false;
if (false) {FCKConfig.Plugins.Add('kfm');}



And the "editor_omschrStyles3.xml" looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<Styles>
<style name="floattleft" element="span" >
<Attribute name="class" value="floattleft" /> </style>
<style name="floattrightt" element="span" >
<Attribute name="class" value="floattrightt" /> </style>
<style name="hoofdtekst" element="span" >
<Attribute name="class" value="hoofdtekst" /> </style>
</Styles>

Sign in to reply to this post

CJ

Is the css style working with other users ??
Please let me know.

CJ.

Sign in to reply to this post

Jimmy Wu

I haven't had any issues with adding the CSS Styles to the editor drop down. Do you have another server you can try this on? Its possible that there might be some server settings that are causing the styles not to show up.

Sign in to reply to this post

CJ

It Works

Hi Jimmy,

Thank you for your reply.
I've tried on a different server and the styles from my extern css are visible now.
I still don't know why I didn't see them on the first server.

CJ

Sign in to reply to this post

Jimmy Wu

If you have the time, try creating a php info page for each of the servers and comparing to see if there are any differences. The php info page should have this code at the top:
<?php phpinfo(); ?>

Sign in to reply to this post

CJ

I copied the working "HTMLEditor map" to my first server and guess what. The editor css styles are working. I don't know what I did wrong the first time but evrything works fine now.
Thank you for your help.

CJ.

Sign in to reply to this post
loading

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