Closed (cannot reproduce)
Project:
Wysiwyg
Version:
7.x-2.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jan 2012 at 11:06 UTC
Updated:
13 Jun 2013 at 04:19 UTC
Hi,
Wysiwyg works fine for the node forms when called as node/add/.
When I called it using drupal_render(node_add()); in ajax callback, form gets loaded,however, editor is not loaded.
Please help me.
Comments
Comment #1
twodAre there any errors in the browser's JavaScript console when performing the AJAX-triggering actions?
Are you doing anything else in the AJAX callback other than calling
drupal_render(node_add());?How is the callback initiated? Are you using the Form API #ajax property?
Are you sure you need to call
drupal_render()?Please see the #unrendered API change and the #menu_callback_array API change.
Comment #2
mehtatejas commentedI was running this code by getJSON method. Hence wysiwyg js is not getting attached even with attachbehaviours.
With 'use-ajax' in drupal link works fine.
Comment #3
twodHmm, I'm not sure I understand what you mean.
Could you post or link to the code you are using so I can try on my development server?
Comment #4
smartango commentedmehtatejas, me too, I don't understand, I use this field definition:
where do I add 'use-ajax' ?
is someway related to http://drupal.org/node/356480
Comment #5
twodIf you apply the patch from #1391034: wysiwyg is not loaded when used with node_add() in ajax forms, you'll also need the D7 Core patch from #1287368: Drupal.settings.ajaxPageState.css gets overwritten (unless it's already made it into 7.x-dev by the time you read this). That might fix things, but I can't guarantee it since I don't have the whole callback code or know how it's requested.
Comment #6
twodWithout further details about the problem I can only close this issue. Please re-open it if you can provide the requested information.