Page 1 of 1

Classes in the WYSIWYG editor [solved]

Posted: Sat Aug 18, 2007 8:34 pm
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

Re: Classes in the WYSIWYG editor

Posted: Sat Aug 18, 2007 9:23 pm
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...

Re: Classes in the WYSIWYG editor [solved]

Posted: Sat Aug 18, 2007 9:37 pm
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

Re: Classes in the WYSIWYG editor [solved]

Posted: Sun Aug 19, 2007 2:25 pm
by faglork
Hi!

a) are we talking about FCKEditor?

b) is this is a bug, or not?

Cheers,
Alex

Re: Classes in the WYSIWYG editor [solved]

Posted: Mon Aug 20, 2007 3:21 am
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.

Re: Classes in the WYSIWYG editor [solved]

Posted: Mon Aug 20, 2007 7:21 am
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

Re: Classes in the WYSIWYG editor [solved]

Posted: Wed Aug 22, 2007 12:16 pm
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

Re: Classes in the WYSIWYG editor [solved]

Posted: Sat Aug 25, 2007 4:15 pm
by nicmare
i checked my stylesheet as screen media too but it still does not appear in tinymc editor. what goes wrong??

Re: Classes in the WYSIWYG editor [solved]

Posted: Tue Aug 28, 2007 7:06 pm
by kendo451
Its TinyMCE.

Re: Classes in the WYSIWYG editor [solved]

Posted: Tue Aug 28, 2007 8:06 pm
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...