On Mon, February 25, 2013, Martin Grigorov wrote:

> Such kind of code should really be executed within #renderHead() with
> OnDomReadyHeaderItem.
> Don't let any JS try to use your HTML DOM elements before the DOM is
> available.

Thank you, in this case I get a Wicket Ajax error:

| Wicket.Ajax: Wicket.Head.Contributor.processScript: [CKEDITOR.editor.replace] 
The element with id or name "valueb54" was not found.: eval -> if 
(CKEDITOR.instances['valueb54'])
| CKEDITOR.remove(CKEDITOR.instances['valueb54']); var editor_valueb54 = 
CKEDITOR.replace('valueb54'); 

Another thing: if writing Javascript code into the response should
not be done in onRender(), should not JavaScriptUtils.writeJavaScript()
be made obsolete?

Cheers,

M'bert

-- 
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 
Ed, the greatest WYGIWYG editor of all.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to