On Mon, February 25, 2013, Martin Grigorov wrote:
> The Ajax response processing looks like:
> - execute prependJavaScripts
> - replace components
> - execute ondomready scripts
> - execute appendJavascripts
>
> I.e. the component DOM element must be there.
> Show us your new code.
Thanks, it's here:
| @Override
| public void renderHead( IHeaderResponse response ) {
| super.renderHead( response );
| final String markupId = field.getMarkupId();
| String script = "if (CKEDITOR.instances['" + markupId + "'])
CKEDITOR.remove(CKEDITOR.instances['" + markupId + "']); " //
| + "var editor_" + markupId + " = CKEDITOR.replace('" + markupId +
"');";
| response.render( JavaScriptHeaderItem.forScript( script, null ) );
| }
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]