On Sun, 18 Oct 2009 08:32:43 +0200, Argo Vilberg <wilps...@gmail.com> wrote:
2009/10/18 Martin Strand <do.not.eat.yellow.s...@gmail.com>
Are you using renderSupport.addScript(...) in example #1?
In example #1 i use
@IncludeJavaScriptLibrary({"js/ckeditor/ckeditor.js","js/ckeditorconfig.js"})
What I meant was: how are you adding the height-setting script you posted?
Or is that the contents of ckeditorconfig.js?
yes it is contents of ckeditorconfi.js
But why then are you including that script in the html template if it's already
in ckeditorconfig.js?
Your problem is probably what I mentioned in my first message:
5.0:
<head></head>
<body>
<textarea>...</textarea>
<script src="ckeditor.js"></script>
<script src="ckeditorconfig.js"></script>
</body>
This works fine since the textarea exists when your ckeditorconfig.js script is
run.
5.1:
<head>
<script src="ckeditor.js"></script>
<script src="ckeditorconfig.js"></script>
</head>
<body>
<textarea>...</textarea>
</body>
In this case, your ckeditorconfig.js script is run before the textarea even
exists. You should not run initialization scripts like that until the document
has been fully loaded.
Here's a bad solution that could work:
window.onload = function () {
CKEDITOR.replace( 'editor1', {
skin: 'kama',
height: 250
});
};
Another bad solution would be to include <script
src="ckeditorconfig.js"></script> in the template right after your textarea.
The best solution is to get rid of ckeditorconfig.js and add your
initialization script with renderSupport.addScript(...) instead.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org