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
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
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.
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?
Can you post up a link to a page where I can see this behavior?
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>
Is the css style working with other users ??
Please let me know.
CJ.
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.
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
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(); ?>
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.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.