• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

New TwistyPlugin uses javascript calls just after the html code to initialize its state (folded in or out). Similarly edit.pattern.tmpl has directly after the textarea:

<script type="text/javascript">initTextAreaHeight();</script>
This gets rendered as:
<!--5-->
I must have been missed the configure setting AllowInlineScript. Since this is off by default, TwistyPlugin and consequently PatternSkin won't work properly.

Perhaps we can make the distinction between javascript that is put by skins and plugins (allow), and javascript that is written in the topic text (disallow).

If we don't, I foresee problems when we move towards AJAX techniques.

AC


For TwistyPlugin I've created a workaround using postRenderingHandler to convert _TWISTYSCRIPT to <script>.

No solution yet for the edit screen.

AC


Done with template refactoring.

AC

ItemTemplate
Summary Javascript calls in templates are removed after rendering
ReportedBy TWiki:Main.ArthurClemens
Codebase

SVN Range TWiki-4.1, Tue, 19 Sep 2006, build 11536
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 11591 11592 11602
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2006-12-03 - ArthurClemens
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback