Page 1 of 1

Styles not showing in TinyMCE dropdown

Posted: Tue Jun 10, 2008 7:17 am
by eluminous
I was just reading a post by mikeiam who described a work around for getting styles to show in the dropdown in TinyMCE in versions earlier than 1.3. I have been reading, researching and looking for a while to get to the bottom of this issue as it would be helpful to some clients to select styles that I initially set rather than trying to get them to remember them each time they add a page or content. Is this a feature which is just very 'hit and miss' for many folks using cms-ms? Surely it cant be this difficult?

I have tried setting some default display styles via the >>extension>>TinyMCE WYSIWYG Basic menu but couldn't get it to fly and the documentation available is a little to vague (for me) on the topic.

I read all I could find on the associated TinyMCE wiki which explains about setting a stylesheet named content_css in the editors root backend module folder, but again, I couldn't make it work there either and wasn't sure exactly where the css file should have been placed.

A pages associated styles show ok in the dropdown when they are already assigned to the active page, but how do I get the them to be active ready for selection for my clients are creating page content?

The formalities (thanks calguy ;)):
*using cmsms 1.2.4/5 with the default tiny-mce
*I have tried creating a dummy css template and assigned every different media type to see if it would trigger a visual display in the content editing window; but nothing would.

Re: Styles not showing in TinyMCE dropdown

Posted: Wed Jun 11, 2008 7:42 am
by Dr.CSS
If you use class' to style, best way I know of, you have to make sure the CSS is set for screen, then you can just add the class in your CSS and it should show up in style drop down...

Like...

.grey {color: #595959}

Re: Styles not showing in TinyMCE dropdown

Posted: Sat Jun 14, 2008 12:03 pm
by eluminous
It doesn't matter what css I use, nothing will display in the dropdown for selection.

Am I correct in thinking that you should be able to create a style sheet that is stored in the database, assign it a screen display method and all classes should be available for selection in the TinyMCE dropdown menu. Is there any other way to work around the issue of styles not showing.

It dosn't matter to me if it works or not, but it would be handy if clients could be offered a list of classes instead of having to remember classes and the appropriate statements that go with each one. Or have I got the concept of how this should work in CMS-ms all wrong?

Re: Styles not showing in TinyMCE dropdown

Posted: Sat Jun 14, 2008 5:58 pm
by Dr.CSS
Well I'm working on a fresh install and yes if it's in the CSS that is set to media type:screen and it's attached to the template it should show...

Have you gone to Extensions » TinyMCE WYSIWYG » Advanced and clicked the 'Reset all settings to default'...

Re: Styles not showing in TinyMCE dropdown

Posted: Mon Jun 16, 2008 12:30 am
by eluminous
there is no 'Reset all settings to default' option in the Advanced tab of TinyMCE...

Re: Styles not showing in TinyMCE dropdown

Posted: Mon Jun 16, 2008 2:04 am
by Dr.CSS
Sorry I forgot you are using 1.2.5...

Stylesheet is set to screen and nothing else, it's attached to template used when editing page, and it has class' in it?...

I don't think ID styles will show up...

No styles from any stylesheet show?...

I have the ones from the News CSS showing up in the tinyMCE interface under Extensions...

Re: Styles not showing in TinyMCE dropdown

Posted: Mon Jun 16, 2008 2:29 am
by eluminous
It works if I install the TinyMCE upgrade 2.4.0b1 from the modules repository section which removes the 'Basic' version that is included in the default 1.2.5 install. Styles wont work with the basic though.

Now, when I use that version I get a bunch of errors in the editor and quite a few plugins throw errors when using trying to use their functionality. For example, I cant get the html window to open with any code in it or the br tag button to show. If i use the cmsms link function it gives me {$lang_cmsmslink_title} in the new window title. Something tells me that installing the upgrade or extended version has messed with it's integration with cmsms.