Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 12:46:52 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155537 Posts in 21712 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: FCKeditor h3 problem with editor.css  (Read 456 times)
Agent

Offline Offline

Posts: 2


« on: November 03, 2010, 11:10:08 PM »

Hi guys,

I have the..
CMS Version 2.8.1
Revision 1287
Admin version 1.4
.. version of the WB and I have an weird problem.

I did an editor.css file under my template but for some reason the h3 does not show up in the dropdown menu as supposed. h1,h2,h4,p tags works like a charm. I have checked and reloaded the editor.css file to the server over 10 times but something is still wrong.

Other h tags looks as they should but the h3 header is showing basic black in the dropdown menu but it cannot be chosen from there. If you highlight an text area and press the header 3 it just blinks and does nothing.

- What I have tried is to upload the editor.css file to the server few times.
- I have recreated it few times.
- I have tried to modify the wb_fck* files.
- I have put the h3 and h4 tags in the same line in CSS (only h4 is shown, so same error still).
- I checked the css_to_xml file, it looks to be in order.
- I checked the class.cssparser.php and it looks to be ok.
- I have tried it with different templates (same problem.)
- I also put another editor.css file to another template (simple and same problem the h3 tag was not there. I had taken the h2 tag off, and when I put it back to the editor.css the FCKeditor did not show it.

Do I need to restart something to get this going as it should?
When I modifed the h2 tag to go as an different color it did not change it, so does the parser do some .XML file that it does not know how to overwrite when the changes have been done or something?

Let me know if you need more into about the problem. Also I would like to know if the h3 tag is working ok with others and can you guys modify the editor.css file so that the changes are shown in the FCKeditor.

- Agent
Logged
donv

Offline Offline

Posts: 23



« Reply #1 on: November 18, 2010, 12:23:55 AM »

Hi, I'm not sure I understand your whole problem, but to confirm one part, I have successfully modified the editor in one of my installations.

The issue was that I had novice editors who were editing pages and modifying the page presentation by using the other controls like they do in MS Word, rather than just using the HTML tag selections (so a template change could not restyle the pages universally). So I modified the editor to display a default entry of "AVOID USE" for those controls (see code below) - they are still usable when required, but they can easily tell which ones to keep their hands off otherwise.

I did this in the /www/modules/fckeditor/wb_config/wb_fckconfig.js file. Note there is a default config file in one directory and this one in the wb_config one.

The editor HTML elements list is defined in this same file.

-Don

Code:
  FCKConfig.DefaultFontLabel = 'AVOID USE' ;
   FCKConfig.DefaultStyleLabel = 'AVOID USE' ;
   FCKConfig.DefaultFontSizeLabel = 'AVOID USE' ;
Logged
Agent

Offline Offline

Posts: 2


« Reply #2 on: November 18, 2010, 07:49:42 AM »

Hi Don,

and thanks for your reply.

I didn't get many replies so I assumed that this is working ok for all the others so I decided to do a fresh installation. After that everything was working ok. Used the same template same settings same host provider. No problems. I still don't know what was the problem but probably some file/files corrupted or something like that.

I probably could have just starting to replace files for new ones and see what has an affect to the system but I am still quite new with the WB so I decided that the fresh install is much faster for me.

- Agent
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!