I can't believe it's just me - maybe related to my configuration?
If I edit a page using WYSIWYG (i.e. TinyMCE), then formatting and the like works quite fine, but everything which needs more input (e.g. adding a link, a table, an image, a special character) will pop up a window with HTML text in it.
This is TWiki 4.2 Beta 1, Apache/2.2.3 (Ubuntu) mod_perl/2.0.2 Perl/v5.8.8 Server, and Firefox 126.96.36.199 on Ubuntu 7.0.4.
Last line of access log is
There's nothing in the error log.
The only "special" thing in the configuration I can think of is that I'm using localisation with an UTF8 locale, but I'll attach
to make sure. The other attachment is the contents of one of the popups.
- 28 Sep 2007
Some experiments showed it to be a server issue, and a pretty simple one: The config generator at TWiki:TWiki.ApacheConfigGenerator
creates the following rule (irrelevant lines skipped):
# 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
This forces HTML pages from
to be served as
, and effectively kills TinyMCE. So there's a conflict between the "recommended" way to configure the server and the default editor in TWiki 4.2. I suggest to do the following:
- Add a
AllowOverride FileInfo to the rules for
pub in TWiki:TWiki.ApacheConfigGenerator
- Add a
.htaccess file to
/pub/TWiki/TinyMCEPlugin which explitly sets
AddType text/html .htm .html
While I can now confirm that this would work, I've read in the docs that using
is not recommended, mainly for performance reasons. Given that the offending URLs are deeply hidden (something like
in my example), the server would have to check eight directories for the existence of the file.
Would it be sensible to remove the
restriction in the config generator and rather rely on the existing option to block direct access to viewing
(setting to "Waiting for Feedback")
- 29 Sep 2007
We had this discussion a while ago. it's really nothing to do with TinyMCEPlugin
, it's the config generator that's at fault. Changing headline from "Popup box when e.g. adding a link contains HTML text" and attributing to ApacheConfigGenerator
This has bitten many people, so I'm raising it from Normal to Urgent as well.
I removed them from the example configs recently but forgot the ApacheConfigGenerator
. Now it is fixed. I also forgot to remove some comment lines from the example configs. I check those in on this bug item
- 30 Sep 2007