Classes in the WYSIWYG editor [solved]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
kendo451

Classes in the WYSIWYG editor [solved]

Post by kendo451 »

I have created a regular template, with a stylesheet attached via the CMSMS database.  The stylesheet has several styles for images. I desire for an admin/editor to be able to create a new page content with an uploaded image and apply the style in the WYSIWYG editor.  However, the classes in my stylesheet do not show up in the "Styles" dropdown menu in the WYSIWYG editor for files using this template.

This stylesheet displays properly when I look at a test page generated with it, so I know it works.

Is it possible to make the WYSIWYG style list include the styles from the stylesheet?

Thanks,
Ken
Last edited by kendo451 on Sat Aug 18, 2007 9:30 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Classes in the WYSIWYG editor

Post by Dr.CSS »

If the CSS is marked for screen it should show up, look at the style sheet at the bottom in the check box area check that the Media Type:  "screen : Intended primarily for color computer screens" is ticked...
kendo451

Re: Classes in the WYSIWYG editor [solved]

Post by kendo451 »

Thanks!

Actually, when I checked, it WAS ticked, but so was "projection".  So if you have screen + something else checked, the styles don't show in the dropdown list.

Ken
faglork

Re: Classes in the WYSIWYG editor [solved]

Post by faglork »

Hi!

a) are we talking about FCKEditor?

b) is this is a bug, or not?

Cheers,
Alex
kendo451

Re: Classes in the WYSIWYG editor [solved]

Post by kendo451 »

A) We are talking about the CMSMS core WYSIWYG editor used to make new pages.  Not sure if that's the same one you mentioned.

B) It would appear to be a bug, but it is a potentially useful bug.  See below:

I am a designer who customizes CMSMS for clients.  They don't respond well to too-many choices, so I would like to limit the styles in the WYSIWYG editor to just a few for images and text in the content sections.

This "bug" would allow me to do that as follows:
  • Create one or more style-sheets that control most of the layout, font, etc. When you load this into the system check two boxes: screen and projector.
  • Create a small style sheet that contains only the styles I want my clients to have access to when they add new content.  Load it into the database and check ONLY the screen box.
Thanks to this bug, it will only show the clients the styles I want them to access.

Still, an improvement would be to fix the bug, and enable the administrator to pick which style-sheet is accessible from the content box.
faglork

Re: Classes in the WYSIWYG editor [solved]

Post by faglork »

kendo451 wrote: A) We are talking about the CMSMS core WYSIWYG editor used to make new pages.  Not sure if that's the same one you mentioned.
That *was* - before v.1.0 -  FCKEditor and is now TinyMCE - that is why I am asking.
kendo451 wrote: B) It would appear to be a bug, but it is a potentially useful bug.  See below:

[...]
Thanks to this bug, it will only show the clients the styles I want them to access.

Still, an improvement would be to fix the bug, and enable the administrator to pick which style-sheet is accessible from the content box.
I have the very same problem, and I will do the same. But that is not what media="screen" in CSS was meant for ...
but maybe there are *reasons* to handle it this way, so I am asking. If it is a bug, it should simply get corrected.

Cheers,
Alex
kendo451

Re: Classes in the WYSIWYG editor [solved]

Post by kendo451 »

Using the screen option as I suggested is definitely an improper exploitation of a bug.  Yeah, it should be fixed.

But when they fix it, perhaps someone could add an option to check whether or not a stylesheet will be available via the Styles in the WYSIWYG editor.

Ken
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

Re: Classes in the WYSIWYG editor [solved]

Post by nicmare »

i checked my stylesheet as screen media too but it still does not appear in tinymc editor. what goes wrong??
kendo451

Re: Classes in the WYSIWYG editor [solved]

Post by kendo451 »

Its TinyMCE.
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

Re: Classes in the WYSIWYG editor [solved]

Post by nicmare »

nope. u are wrong - go and make your homeworks before giving useless answers ;)
quote from wiki:
Tiny Moxiecode Content Editor

any questions?
btw: my problem is solved

best...
Locked

Return to “Layout and Design (CSS & HTML)”