[SOLVED] CMSMS 1.3, CSS and TinyMCE
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
[SOLVED] CMSMS 1.3, CSS and TinyMCE
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.
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.
Last edited by Ziggywigged on Mon Jun 09, 2008 7:14 pm, edited 1 time in total.
Take a penny, leave a penny.
Re: CMSMS 1.3, CSS and TinyMCE
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...
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Re: CMSMS 1.3, CSS and TinyMCE
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.
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.
Take a penny, leave a penny.
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Re: CMSMS 1.3, CSS and TinyMCE
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.
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.
Last edited by Ziggywigged on Mon Jun 09, 2008 12:36 pm, edited 1 time in total.
Take a penny, leave a penny.
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
- Location: Denmark
Re: CMSMS 1.3, CSS and TinyMCE
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
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
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Re: CMSMS 1.3, CSS and TinyMCE
Thanks Silmarillion, that is indeed the fix.
Take a penny, leave a penny.
Re: CMSMS 1.3, CSS and TinyMCE
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!!!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
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
- Location: Denmark
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
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
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
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.
I uninstalled TinyMCE then removed it completely. Then uploaded the new one, re-installed. Checked all my settings.
Tried clearing cache. Nothing.
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
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.
Take a penny, leave a penny.
- Silmarillion
- Dev Team Member
- Posts: 483
- Joined: Sun Jan 02, 2005 9:10 pm
- Location: Denmark
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
hebshirt, are you getting any javascript errors?
m.
m.
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
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.
(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.
Mmmmm... Tasty.
-
- New Member
- Posts: 9
- Joined: Sat Mar 29, 2008 3:37 pm
- Location: Germany
Re: [SOLVED] CMSMS 1.3, CSS and TinyMCE
Hi!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.
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
AH .... that is for me, thanksjtcreate wrote: On a side note, the included admin theme is excellent.
