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