On Mon, Feb 25, 2013 at 4:09 PM, Martin Dietze <[email protected]> wrote:
> 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 ) );
>
replace with:
response.render( OnDomReadyHeaderItem.forScript( script ) );
> | }
>
> 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]
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>