Page 1 of 2
[SOLVED] CMSMS 1.3, CSS and TinyMCE
Posted: Sun Jun 08, 2008 6:17 pm
by Ziggywigged
I just upgraded from 1.2.5 to 1.3 for a client site. I've noticed that now TinyMCE actually makes ALL of my styles available in the 'Style' menu. I think this was always supposed to work but never did for me so my work around was to just make a separate 'editor' stylesheet and apply the 'screen' media type. This was the only media type TinyMCE would auto recognize.
So I'm now trying to use the CSS Style options in the TinyMCE configurations and whenever I enter anything, TinyMCE no longer shows. I've tried entering a couple different ways:
"CustomName1=style1"
CustomName1=style1
I assume that 1. CustomName1 can be anything I want to name it and 2. style1 should match the name of the existing style in a stylesheet, correct? Any thoughts as to why this may be happening?
The other thing is that TinyMCE would use my body styles which include font family, size and color so that content appears to the editor as it would when viewing the site but it no longer does and defaults to arial in black. I added these styles to the Body tag CSS field in TinyMCE but it still does not honor my color.
Otherwise the upgrade was successful and all works well.
Thanks.
Re: CMSMS 1.3, CSS and TinyMCE
Posted: Sun Jun 08, 2008 7:23 pm
by Dr.CSS
The body tag css is just for the background color of tiny, if you had black as your page background color, you put background-color: #FFFFFF, anything else in there won't show/work...
Re: CMSMS 1.3, CSS and TinyMCE
Posted: Sun Jun 08, 2008 10:16 pm
by Ziggywigged
Actually all of my properties were recognized except the color.
Anyway, my bigger issue is that when I try to use the CSS Style options to make only certain styles available to the editor, it disables TinyMCE.
Re: CMSMS 1.3, CSS and TinyMCE
Posted: Mon Jun 09, 2008 12:14 pm
by Ziggywigged
Ok, I just upgraded another client site from 1.2.5 to 1.3 and now TinyMCE doesn't show at all. When I initially logged in and went to the TinyMCE admin page, it did show, but it looked like the old version, so I hit the 'Reset all to default" and now I can't get it back.
I tried deactivating and reactivating, and uninstalling and reinstalling but nothing. Any suggestions?
EDIT: Ok, I just installed FCKeditorX and it was very buggy, so I thought I'd try Tiny one more time and now it shows. Very odd.
EDIT 2: Ok, I can confirm now that after the upgrade for 2 different sites on 2 different hosts, entering anything in the "CSS Style" options tab under the TinyMCE admin page, it disables TinyMCE all together. Unless I'm entering it the styles incorrectly, this is an issue.
Re: CMSMS 1.3, CSS and TinyMCE
Posted: Mon Jun 09, 2008 2:47 pm
by Silmarillion
hi mikeiam
I know some people are having to reset all settings and sometimes even remove the module and install it again, but I've never been able to track down the problem. For most people it just works...
About the css-style problem, though, it's a real bug, and I've fixed it. A 2.4.1 version of the module will be out in a few days, but until then you can edit the file called modules/TinyMCE/templates/tinyconfig.tpl
find the line containing:
theme_advanced_styles : '{$css_styles}',";
and remove the last 2 chars so it looks like this:
theme_advanced_styles : '{$css_styles}',
This should fix your problem!
THanks for the report!
Morten
Re: CMSMS 1.3, CSS and TinyMCE
Posted: Mon Jun 09, 2008 3:25 pm
by Ziggywigged
Thanks Silmarillion, that is indeed the fix.
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
Posted: Tue Jun 10, 2008 2:07 am
by Greg
Thanks Silmarillion, fix worked for me as well!!
Re: CMSMS 1.3, CSS and TinyMCE
Posted: Tue Jun 10, 2008 4:29 pm
by biliousfrog
Silmarillion wrote:
hi mikeiam
I know some people are having to reset all settings and sometimes even remove the module and install it again, but I've never been able to track down the problem. For most people it just works...
About the css-style problem, though, it's a real bug, and I've fixed it. A 2.4.1 version of the module will be out in a few days, but until then you can edit the file called modules/TinyMCE/templates/tinyconfig.tpl
find the line containing:
theme_advanced_styles : '{$css_styles}',";
and remove the last 2 chars so it looks like this:
theme_advanced_styles : '{$css_styles}',
This should fix your problem!
THanks for the report!
Morten
Why don't I have the template file, is it only in the latest beta versions of Tiny? I somehow managed to get the b4 version working a few weeks ago but the client complained because it wasn't usable so I've gone back to the 2.4.0a1 version. This problem is driving me crazy!!!
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
Posted: Tue Jun 10, 2008 5:26 pm
by Silmarillion
Hi biliousfrog
I just uploaded a 2.4.1 to the forge, please try that. It should appear in ModuleManager in some hours as well
regards
Morten
Re: CMSMS 1.3, CSS and TinyMCE
Posted: Tue Jun 10, 2008 11:39 pm
by herbshirt
This is not solved for me.
I uninstalled TinyMCE then removed it completely. Then uploaded the new one, re-installed. Checked all my settings.
Tried clearing cache. Nothing.
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
Posted: Wed Jun 11, 2008 12:38 am
by Ziggywigged
herbshirt, (this may sound ridiculous but) try installing FCKeditor from the Module Manager. Then uninstall it and and see if TinyMCE show up after that. I couldn't get it to show after one of my upgrades so I did what I mentioned above and it just worked after.
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
Posted: Wed Jun 11, 2008 6:46 am
by Silmarillion
hebshirt, are you getting any javascript errors?
m.
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
Posted: Fri Jun 13, 2008 3:44 pm
by jtcreate
I am having this same issue... I tried uninstalling and re-installing... also tried the fckeditor suggestion. None worked. Any help is appreciated. Thanks!
(I'm not getting any errors... TinyMCE is just not showing up). It was a fresh install of 1.3.
On a side note, the included admin theme is excellent.
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
Posted: Fri Jun 13, 2008 9:41 pm
by WhiteStar99
mikeiam wrote:
The other thing is that TinyMCE would use my body styles which include font family, size and color so that content appears to the editor as it would when viewing the site but it no longer does and defaults to arial in black. I added these styles to the Body tag CSS field in TinyMCE but it still does not honor my color.
Hi!
I tried to update my local cms site and it suffers the same problem as described by you. TinyMCE does not recognize the styles from my website, so it defaults to arial in black, white background color, images are not justified correctly (not until I klick the image settings and confirm them again) etc.
I tried Silmarillion's changes to the told file but it did not work.
Is there anything else I can try?
Thanks in advance.
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
Posted: Fri Jun 13, 2008 9:58 pm
by nuno
jtcreate wrote:
On a side note, the included admin theme is excellent.
AH .... that is for me, thanks
