Question
I'm having trouble getting
TinyMCEPlugin to work with Firefox (2.0) or Netscape (7.2). The functions that use pop-up windows to display the interface don't work. The window will pop-up, but there will be code displayed instead of the user interface. Everything works fine if I use Internet Explorer. I've already tried enabling pop-ups for my site...didn't help. Has anyone seen this before?
Environment
--
DeanSpicer - 20 Aug 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Someone else mailed me with the same problem earlier today ... no, I don't know what causes it. I have tested on FF 2.0.0.6 on both Debian and Windows. Any answers to this one would be most welcome!
--
CrawfordCurrie - 20 Aug 2007
It works for you on FF 2.0.0.6? That is exactly the version I am using....
--
DeanSpicer - 20 Aug 2007
Looking at the error console I see the following after clicking to Edit the page:
Warning: Unknown property 'filter'. Declaration dropped. Source File: http://mysite/twiki/pub/TWiki/TinyMCEPlugin/tinymce/jscripts/tiny_mce/themes/advanced/css/editor_ui.css Line: 72
Seems to be a bunch declarations in editor.css that it can't find. There are also some more missing declarations related to scrollbar stuff and text-overflow that I didn't include here.
--
DeanSpicer - 21 Aug 2007
I'm the guy who emailed Crawford about a week ago while running into the problem with Firefox on Ubuntu. I sort of stopped worrying about this since it turns out the problem doesn't occur in a VM install of Ubuntu. I can't see any difference other than native vs. virtual machine installs. Any potential solutions to this one?
--
DanKarpowitz - 30 Aug 2007
I have been seeing this on a client site, though I'm not sure what the problem actually is. What happens is that the Apache server serves
.htm files (which are used for the content of the popups) with a MIME type of
text/plain, rather than
text/html as they should be. I guess it is down to the configuration of the Apache server. Can anyone help?
--
CrawfordCurrie - 31 Aug 2007
Ahhhh yes - I see this is a typical setup:
<Directory "/var/www/twiki/pub">
Options None
AllowOverride None
Order Allow,Deny
Allow from all
Deny from env=blockAccess
# This line will redefine the mime type for the most common types of scripts # It will also deliver HTML files as if they are text files
AddType text/plain .html .htm .shtml .php .php3 .phtml .phtm .pl .py .cgi
</Directory>
This redefines .htm to text/plain. Since TinyMCE gets the tempates for its popups from the pub dir, this is the problem.
Solution: remove .htm from the above list and reboot the apache server (if necessary).
CC
Hmm, I tried removing .htm from the AddType text/plain line as you suggested. I then restarted the apache server...no effect. This didn't solve the issue for me
--
DeanSpicer - 05 Sep 2007
It works for me by removing .htm and .html from the
AddType line. And also make sure that you reload the pop-up dialog completely by pressing "shift" when clicking "reload".
--
WenjianYang - 08 Sep 2007
Dean, this is definitely the cause of the problem you describe; if your changes don't correct it, then you missed a change somewhere. Check .htaccess and all your apache config files, and reload as
WenjianYang suggests (even better, restart the browser).
--
CrawfordCurrie - 11 Sep 2007
Removing only
.htm did not suffice for me. Only after removing
.html the problem was resolved.
For some reason the pop-up frame gets shrinked in width (right button
cancel isn't visible) when I'm using FireFox in normal mode. Pop-up look ok only when I use Firefox in safe mode.
Any ideas which FireFox plugin (or other component) might interfere with the dimension creation of the pop-up?
I'm also receiving the following apache errors messages of the following kind - any idea where to get the missing base.css?
[Wed Oct 17 09:22:24 2007] [error] [client <certain ip>] File does not exist:
/apps/twiki-root/twiki/pub/TWiki/TWikiTemplates/base.css, referer:
<certain server>/twiki/pub/TWiki/TinyMCEPlugin/tinymce/jscripts/tiny_mce/blank.htm
(I have removed the actual IP and server name from the above).
--
EyalTeutsch - 17 Oct 2007
Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.
--
PeterThoeny - 03 Dec 2007
It seems that the problem with the dimension width of the pop-up is caused by the 'hebrew calendar' Firefox add-on (
https://addons.mozilla.org/en-US/firefox/addon/1379
).
Additionally, the Greasemonkey add-on seems also to have an unfavourable cosmetic effect on the pop-up dimensions, but one which doesn't prevent any part of the text to be read.
--
EyalTeutsch - 01 Jan 2008
We're running TWiki 4.1 or something such under Ubuntu. We had the code-in-the-window problem. The apache configuration fix here looked promising. Sure enough, we had the offending line. I removed .htm from the list. I reloaded apache. No change. I restarted apache. No change. I removed .html from the list and did all the various reloadings and restartings I could think of, including shutting down firefox. No change. So, if anyone has further hints about how to make this work, I'd be really happy. In the meantime we'll turn
TinyMCE off.
--
DavidHoughton - 17 Mar 2008
Alright, I'm wrong. There was a variety of reloading I didn't try. Everything works after clearing Firefox's cache.
--
DavidHoughton - 17 Mar 2008