I'm trying to insert JavaScript into a wiki page, like this:

[{If page='SandBox' exists='true'

<script language="javascript">document.writeln("<b>User Agent: </b>" +
navigator.userAgent);</script>}]

(Yes, it's a gross hack, but I'm just playing a bit with what's possible,
and sometimes it's nice to be able to inject arbitrary content into a page.)

The page displays as I would expect, but if I try to edit it, the preview
of the JavaScript bit takes over the entire screen, making editing
impossible. You can see for a short moment that the edit screen is actually
displayed correctly, before the preview is triggered.

I got to this point by creating the page with 2.11M3 which IIRC didn't have
the preview, but now I'm using 2.11M6.

So I'm wondering a) Is this a bug that could be fixed?, and b) Is there a
way to turn off the preview, ideally just for this page?

Thanks!

Ulf

Reply via email to