close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

HTML Editor Styles Not Diplaying

Thread began 2/15/2010 7:46 am by fire MUNKY (Roy) | Last modified 2/15/2010 11:40 am by neilo | 1355 views | 2 replies |

fire MUNKY (Roy)

HTML Editor Styles Not Diplaying

I am having an issue with Styles in the HTML Editor.
I have read all the comments on the Forum here and still no joy.

Commented out the RED default Style.

Use the Wizard to set up a Custom Editor in the Styles Tab at the end I browse to the .css file and it finds it fine. All the Styles appear in the Editor Box. I choose the Body Style for the Body Selection and I CTRL select all the other styles to supposedly add them to my Drop Down List of available styles in the Editor on the Server.

Having checked the .js files the XML is produced although it is always produced unformated, and I have to correct the layout, structure. Still the right file is produced. I upload the relevant files.

Then when it comes to the on the SERVER there are no Styles in the Style Drop down at all. What looks like a black line appears as if there is something behind but it is not.

Any advice?

The .js for the Editor is below and below that is the .xml

Admin_Contact_update_GuitaristContactCopy1.js

// Custom configuration for iRite
FCKConfig.XMLFullName = 'Guitarist_Contact_Editor';
FCKConfig.XMLFileName = 'GuitaristContactEditor.xml';
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';

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

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

FCKConfig.BaseHref = '';
FCKConfig.DefaultLinkTarget = '_blank';

FCKConfig.ToolbarSets["Custom"] = [ ['Source'], ['Image','Table','Rule','SpecialChar','PageBreak'], ['Link','Unlink'], ['Cut','Copy','Paste','SpellCheck'], ['Undo','Redo','-','RemoveFormat'], '/', ['Style','FontFormat','FontName','FontSize'], '/', ['Bold','Italic','Underline','StrikeThrough'], ['TextColor','BGColor'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['OrderedList','UnorderedList','-','Outdent','Indent']]; /* Toolbar end */

FCKConfig.ForceStrongEm = false;
FCKConfig.FormatIndentator = ' ';
FCKConfig.EnterMode = 'br';
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 = 'css/EditorHTML.css'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.BodyClass = 'body';
FCKConfig.StylesXmlPath = '../custom/Admin_Contact_Update_undefinedStyles1.xml'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.ManagerEnabled = true;
if (true) {FCKConfig.Plugins.Add('kfm');}

The Admin_Contact_Update_undefinedStyles1.xml is

<?xml version="1.0" encoding="utf-8" ?>
<Styles>
<style name="a" element="span" >
<Attribute name="class" value="a" />
</style>
<style name="backToTop" element="span" >
<Attribute name="class" value="backToTop" />
</style>
<style name="body" element="span" >
<Attribute name="class" value="body" />
</style>
<style name="first" element="span" >
<Attribute name="class" value="first" />
</style>
<style name="hr" element="span" >
<Attribute name="class" value="hr" />
</style>
<style name="imgBox" element="span" >
<Attribute name="class" value="imgBox" />
</style>
<style name="imgBoxColumn" element="span" >
<Attribute name="class" value="imgBoxColumn" />
</style>
<style name="imgBoxLeft" element="span" >
<Attribute name="class" value="imgBoxLeft" />
</style>
<style name="imgBoxTwoColumn" element="span" >
<Attribute name="class" value="imgBoxTwoColumn" />
</style>
</Styles>

All files are uploaded. I have even deleted everything on the Server and reuploaded new.
Still no joy.

Thanks

Sign in to reply to this post

fire MUNKY (Roy)

Suddenly working on Editor just produced. How?

Interesting that I did nothing different.
I just did the same as always and Voila it worked with the Styles as per the Image.

I changed no folders and nothing on the site.
All parameters were 100% the same but the Files produced were different.
01. The Toolbar Set Code is shown differently then on the Other Editors.
02. FCKConfig,XMLFileName is shown as (custom) and there is a (custom) next to the .XMLFullName as well.

Why is this ? When it is the Extension generating the code and files?

// Custom configuration for iRite
FCKConfig.XMLFullName = 'StandardTextEditor (custom)';
FCKConfig.XMLFileName = '(custom)';
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';

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

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

FCKConfig.BaseHref = '';
FCKConfig.DefaultLinkTarget = '_blank';

FCKConfig.ToolbarSets["Custom"] = [
['Source'],
['Undo','Redo','RemoveFormat'],
['Cut','Copy','Paste','SpellCheck'],
['Image','Flash','Table','Rule','PageBreak'],
['Link','Unlink'],
'/',
['Style','FontFormat','FontName','FontSize'],
'/',
['Bold','Italic','Underline'],
['TextColor','BGColor'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull']
]; /* Toolbar end */

FCKConfig.ForceStrongEm = false;
FCKConfig.FormatIndentator = ' ';
FCKConfig.EnterMode = 'br';
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 = 'css/EditorHTML.css'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.BodyClass = 'body';
FCKConfig.StylesXmlPath = '../custom/Admin_Terms_Update_undefinedStyles1.xml'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.ManagerEnabled = true;
if (true) {FCKConfig.Plugins.Add('kfm');}

I have just produced 4 Editors 3 of which did not take the styles and 1 which did.
I just copied the code to all the Editor .js files and of course they ALL work now.
How frustrating is this?

This is what I find confusing.
I had a similar issue yesterday with Digital File Pro 2.
It was simply not taking the Default File for data on Update.
Only when I manually hand coded it did it suddenly inexplicably start working for some reason via the Wizard. Its this kind of hit and miss thing that takes up time.

Actually even with DataAssist all pages work out fine but for some weird reason the RESULTS pages always without fail add Styles to the Head of the Document and confuse the page. I always have to go into the code and manually delete the block. Again it doesnt do this with Search, Update, Delete etc so why should it do it with Results?

I find this quite exasperating in the sense that sometimes you are not doing anything wrong, it just appears that the extension is being tempermental for want of a better word.

Well sorted out now at last.

Sign in to reply to this post

neilo

I was just about to post back about your original javascript file. Everytime I have applied my own styles it has specified the starting preset and '(custom)' in the first and second lines:

// Custom configuration for iRite
FCKConfig.XMLFullName = 'Advanced Manager Enabled (custom)';
FCKConfig.XMLFileName = '(custom)';

I can't think why it wouldn't declare a 'Custom' set given that you had selected and added styles.

Weird. Glad you got it working.

Sign in to reply to this post

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