1
Daigoro
Tinyeditor and different css classes for tables
  • 2006/9/9 22:20

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


I have installed Tinyeditor 1.0 beta on my XOOPS 2.0.15.

When I want to insert a table, I have the ability to select between 50 or more css classes... But I would like to limit that selection to perhaps two or three classes.

Did any of you allready figure out where to to that?
Best regards,
Daigoro

2
Daigoro
Re: Tinyeditor and different css classes for tables
  • 2006/9/10 10:13

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


I'm still curious about where all those css classes that's shown in the create table section is listed. Does it filter them out from the css file?

It would be very nice to be able to limit them to only the classes needed.
Best regards,
Daigoro

3
McDonald
Re: Tinyeditor and different css classes for tables
  • 2006/9/10 11:24

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


I've got tinyeditor installed also, but the only class I have is breakthepage.
Which once do you have, where did you get them from?

4
frankblack
Re: Tinyeditor and different css classes for tables
  • 2006/9/10 11:42

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Indeed the editor reads out ALL classes from the css of the sites default theme.

Initially I thought that this was a good idea, because most of the users of tinyeditor overread my advice to create a tinyeditor-tailored css file so they were always asking: where are the css classes.

So again: make a new css file, copy the most vital css classes from your default css file to keep the look and feel of the site when you want to write e.g. articles. Save this css to your server and setup the path to the css inside the preferences of tinyeditor.

HTH

Edit: Why it failed in McDonald's case I am not sure. I tried to implement a mechanism that "repairs" the path to the default css when another browser than IE is used, because normally tinyMCE is not able to parse the import command in a css file to get the right path. Maybe McDonald can provide me the path to the css when he uses his browser.

5
Daigoro
Re: Tinyeditor and different css classes for tables
  • 2006/9/10 11:50

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Ahhh...
I see.
I did indeed read that I could add a specific css file, but I missed the meaning.

I'll try your advice at once.
Best regards,
Daigoro

6
Daigoro
Re: Tinyeditor and different css classes for tables
  • 2006/9/10 12:29

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Works like a charm. Thanks.

Now I just have to find out with this TinyEditor related issue, to have a working site.
Best regards,
Daigoro

7
McDonald
Re: Tinyeditor and different css classes for tables
  • 2006/9/10 14:10

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Quote:

frankblack wrote:

Edit: Why it failed in McDonald's case I am not sure. I tried to implement a mechanism that "repairs" the path to the default css when another browser than IE is used, because normally tinyMCE is not able to parse the import command in a css file to get the right path. Maybe McDonald can provide me the path to the css when he uses his browser.


The reason it fails in my case is because I'd set my own css-file. If I remove it from the preferences I got all the other css-classes too.

8
frankblack
Re: Tinyeditor and different css classes for tables
  • 2006/9/10 14:20

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Lucky me! I think I am not too self-confident in my code!

9
McDonald
Re: Tinyeditor and different css classes for tables
  • 2006/9/10 14:32

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Quote:

frankblack wrote:
Lucky me! I think I am not too self-confident in my code!


Your code is very good frankblack! Resized Image

Login

Who's Online

422 user(s) are online (352 user(s) are browsing Support Forums)


Members: 0


Guests: 422


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits